Forum Discussion
Foxed why ALL calculation not working
- 6 years ago
Hi masplin ,
I don't know if it is the result you want. You need to create the following date table.
Date = CALENDAR(MIN('ATEs'[ATEDate]),MAX('ATEs'[ATEDate]))Then create the following measure:
Measure 2 = VAR TableVar = CALCULATETABLE ( ADDCOLUMNS ( SUMMARIZE ( ATEs, 'Time'[TimeKey], 'Date'[Date] ), "ATEs", ATEs[ATE Count] ), ALL ( 'Date' ) ) RETURN CALCULATE ( CALCULATE ( SUMX ( TableVar, [ATEs] ), ALL ( 'Date' ) ) )Results are as follows:
Here is a demo, please try it:
Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Some times We all miss some basic thing. Please check the relation ship of all tables is it intact?
yep or the first column wouldn't have worked
- v-joesh-msft6 years ago
Solution Sage
Hi masplin ,
I don't know if it is the result you want. You need to create the following date table.
Date = CALENDAR(MIN('ATEs'[ATEDate]),MAX('ATEs'[ATEDate]))Then create the following measure:
Measure 2 = VAR TableVar = CALCULATETABLE ( ADDCOLUMNS ( SUMMARIZE ( ATEs, 'Time'[TimeKey], 'Date'[Date] ), "ATEs", ATEs[ATE Count] ), ALL ( 'Date' ) ) RETURN CALCULATE ( CALCULATE ( SUMX ( TableVar, [ATEs] ), ALL ( 'Date' ) ) )Results are as follows:
Here is a demo, please try it:
Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- masplin6 years ago
Impactful Individual
Ah is it that in my measure my TableVAR is picking up the context of the column/row of each cell i.e. a single date and time so there is nothing to add up. You VAR measure is creating a table for the whole set of dates for each time?
- v-joesh-msft6 years ago
Solution Sage
Hi masplin ,
Yes, you are right, in fact, the formula can be simplified to this:
Measure 2 = VAR TableVar = CALCULATETABLE ( ADDCOLUMNS ( SUMMARIZE ( ATEs, 'Time'[TimeKey], 'Date'[Date] ), "ATEs", ATEs[ATE Count] ), ALL ( 'Date' ) ) RETURN SUMX ( TableVar, [ATEs] )Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.