Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 @Anonymous
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!
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 @Anonymous
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 😞