Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Group by and total - Struggling for 4 days

Kallis
8 - Asteroid

Hello Friends

 

I am struggling with a requirement for the past 4 days.I have given a table below. 

The requirement is that this must be GROUPED BY Cost Centre. 

One Cost Centre should have one line which means that the columns from Value till Total Billing must be summed up. The problem is that some of these columns, Billing till Total Billing are STRINGS. I have replicated the Excel formula behind these columns. 

 

Please see the attached screenshot from the Alteryx Output window.

 

If I convert these columns into double or int so that I can use the Summarise tool to Group By, the formula is gone and the columns become empty. I tried the Formula tool to convert these columns into a number but the result was the same. 

I hope I have explained somewhat clearly. Kindly help.

 

Formula.JPG

 

RecordIDCost CentreNameStatusTeamRevenue CCValueAdjustmentTrue UpBillingMarkupTotal Billing
2CC1ADelivery IncludedCarenRevenue CC1-1012.1300-1012.13-151.8195-1163.9495
3CC1ADelivery IncludedCarenRevenue CC11012.13001012.13151.81951163.9495
4CC1ADelivery IncludedCarenRevenue CC11236.44001236.44185.4661421.906
5CC1BSite LegalIncludedMalfoyRevenue CC22927830029278343917.45336700.45
6CC1BSite LegalIncludedMalfoyRevenue CC2-733503.2100-733503.21-110025.4815-843528.6915
7CC1BSite LegalIncludedMalfoyRevenue CC2879232.2100879232.21131884.83151011117.042
8CC1BSite LegalIncludedMalfoyRevenue CC223820.10023820.13573.01527393.115
9CC1BSite LegalIncludedMalfoyRevenue CC27443.78007443.781116.5678560.347
10CC1CSite LegalIncludedRonRevenue CC311165.670011165.671674.850512840.5205
11CC1CSite LegalIncludedRonRevenue CC32709940027099440649.1311643.1
12CC1CSite LegalIncludedRonRevenue CC31171130011711317566.95134679.95
13CC1CSite LegalIncludedRonRevenue CC372.090072.0910.813582.9035
14CC1CSite LegalIncludedRonRevenue CC3245.9300245.9336.8895282.8195
15CC1DSite LegalIncludedHarryRevenue CC411263.820011263.821689.57312953.393
16CC1DSite LegalIncludedHarryRevenue CC421399.290021399.293209.893524609.1835
17CC1DSite LegalIncludedHarryRevenue CC43388400338845082.638966.6
18CC1DSite LegalIncludedHarryRevenue CC41463.92001463.92219.5881683.508
19 REPLIES 19
apathetichell
19 - Altair

@Kallis - this isn't helping - let's start over. do you want to keep formulas in your excel file - if so you should read up on overwriting specific ranges. you would overwrite the ranges that feed into a specific excel sheet - BUT NOT THE FORMULAS THEMSELVES.

Do you want to do this for a new excel file. You can't - unless you create a blob template - and then follow that step above.

Do you want users to enter values which update formulas -> and then Alteryx sums them -> if so - that's an app. 

 

Otherwise - I have no idea what you want. Perhaps post AN EXCEL FILE. with a sheet of what you have -> and what you want. you've now confused me (which is easy), @ChrisTX  and @Qiu  - so perhaps take a step back and tell us what you have. what you want to keep. how the user is going to use it. what you want alteryx to do - and how you want it look?

Qiu
21 - Polaris
21 - Polaris

@apathetichell 
nice comment.

Kallis
8 - Asteroid

Thanks @Qiu @apathetichell  @ChrisTX  

Thanks for your patience. I am thinking about an alternate method to solve this problem. If that does not succeed, I will inform the user that I will give them the raw data and they will have to create a Pivot to group the data. 

ShivamModi
5 - Atom

As far as Icouls understand the issue, just add summarise with specifications (SS Attached), it should work. Experts! please comment on this solution, if you think should be done any different and why. This is my first attempt and trying to learn.

 

Screenshot 2024-09-15 134931.png

ChrisTX
16 - Nebula
16 - Nebula

I "think" the request is:

  • Read the actual formulas from the Excel XLSX file.
    • this would require reading the XML from the XLSX file, to get the formula.  I've tried it, pretty sure it won't work.  Because Microsoft does not store *all* formulas in a way that can be read from the XML.
  • Dynamically adjust the Alteryx calculation(s) to implement the formula as read from Excel.
    • If the original formula was A1 + B1, then a user changed the formula to A1 + B1 + C1, Alteryx would use the new formula to calculate a new result.

 

Abhi
Alteryx
Alteryx

@Kallis I think this is what you are looking for 

 

PS: The table you shared on last comment the entry in Value field for CC1A is wrong, it should be 1236.44 instead of -1012.13.

 

Hope this solution helps.

Kallis
8 - Asteroid

Thanks @Abhi 

This is not the solution I am searching for. I tried this before I turned to the community. The main problem here is to Sum the number columns and retain the formula at the backend. 

Anyway, thanks for your support

Kallis
8 - Asteroid

Friends, 

I am truly humbled by the responses. I am grateful for all the solutions that I have received. I am sorry I have not explained the problem much more clearly.

However, I have found a solution. It involves running another process based on the output of the 1st process. There is no way to accomplish this task within the original WF itself. 

 

Thanks @Abhi @ChrisTX @ShivamModi @Qiu @apathetichell 

Qiu
21 - Polaris
21 - Polaris

@ChrisTX 
Nice to hear that you have found a solution.

I do hope the disucssion here helps in the process.

Kallis
8 - Asteroid

@Qiu 

Yes sir. Absolutely. The discussions here gave me a lot of insights.

Labels