Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
What am I doing wrong?
I need to find the average age group that people die of COVID-19. So I thought first to make a calculated column of Running Total deaths per age category. And then find the value that is just over half of the total number of deaths and produce the corresponding age-group.
The first step already doesn't work for me. I tried all the community posts I could find but no answer.
Calculated column
Table:
As you can see the table just shows the total number of deaths on each row.
I tried the formula without "FILTER", but that returns an error:
Please help!
Hi @whulsbergen
If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!
@whulsbergen , Your formula is correct, but that is measure not column.
ok. In other posts it looked like the measure and column-solutions were almost identical, and columns I can see quicker what it looks like, but let me try measure instead..
Well, it worked!
Try like
opgeteld overleden =
RETURN
DIVIDE(CALCULATE(
SUM('Confirmed COVID-19 cases by sex and age'[Deaths]);
FILTER(
ALL('Confirmed COVID-19 cases by sex and age');
'Confirmed COVID-19 cases by sex and age'[Index] <= max ( 'Confirmed COVID-19 cases by sex and age'[Index] )
));CALCULATE(sum('Confirmed COVID-19 cases by sex and age'[Deaths]);ALL('Confirmed COVID-19 cases by sex and age'));0)
Hi @whulsbergen
Can you try following:
Cumulative Quantity =
CALCULATE (
SUM ( 'Confirmed COVID-19 cases by sex and age'[Deaths] ),
FILTER (
ALL ( 'Confirmed COVID-19 cases by sex and age' ),
'Confirmed COVID-19 cases by sex and age' [Index] <= MAX ( 'Confirmed COVID-19 cases by sex and age' [Index] )
)
)
Tried. Shows something different now. No Totals running yet 😞
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |