Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
RichardMo
Frequent Visitor

Cumulative chart with filter

Beginner level. I have a table with columns including ‘week_start_date’, ‘region’, and 'appointment_count'.

 

I have a measure for a chart showing cumulative appointment_count over time, which works fine:

Cumulative measure = CALCULATE(

SUM(Table1[appointment_count]),

FILTER(ALL(Table1),

Table1[week_start_date]<=MAX(Table1[week_start_date])

))

 

I want to filter the cumulative chart by the ‘region’ column, but it seems you can’t filter the above code by anything except the week_start column, so I tried this:

 

Cumulative measure = CALCULATE(

    SUM(Table1[appointment_count]),

    FILTER(ALL(Table1),

    Table1[week_start_date]<=MAX(Table1[week_start_date])&&

    Table1[region]=SELECTEDVALUE(Table[region])

      ))

 

This gives the correct values when I filter by region, but now the default unfiltered value is wrong; it gives a very low figure that doesn’t relate to anything.

 

Thank you for any tips!

 

5 REPLIES 5
RichardMo
Frequent Visitor

Great, thank you. That works when all my data is in the same table. I have another question - what if the filter was on a related region table?

GuillaumePower
Resolver I
Resolver I

Yes, you've right, I've to check that better.

GuillaumePower
Resolver I
Resolver I

It is not necessary to add  this filter "Table1[region]=SELECTEDVALUE(Table[region])" in the DAX command. You can use a slicer on the region which could select one or more region. You will get the right cumul.

When I had a slicer on region, or any other column, it didn't filter the cumulative chart. 

You should use this Dax Command whith AllExcept for the region :

 

Cumulative Mesure = calculate(sum(Feuil1[index]),filter(ALLEXCEPT(Feuil1,Feuil1[Region]),Feuil1[index]<=MAX(Feuil1[Index])))

 

 

IndexCumulatif.png

 

 

Have you all your Data in the same Table ? That should run well like that.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.