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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Tomasjhussey
Frequent Visitor

DAX Measure help

 Hi,

 

I've been expericing an unexpected behaviour with a cumulative dax measure

below the standard measure that I am using and a screenshot that illustrates my problem

 

Cumulative Loss =
CALCULATE (
SUM ( Forum[Loss] ),
FILTER ( ALL ( Forum[Year] ), Forum[Year] <= MAX ( Forum[Year] ) )
)
 

 Capture.JPG

 

All graphs illustrate the same Measure described above and the matrix has the Loss for each year (not cumulative)
The issue is in the bottom left graph (affected by the Property Type Slicer) where the cumulative loss drops in year 9, apparently due to an absence of loss in SA & Apartments as the matrix shows.
I was expecting a line equal to the one in the top left chart where it acumulates both SA and ACT numbers.
Also the graph on the top right shows the expected Aparment cumulative loss, so I dont fully understand why the bottom left one is showing something different.
 
Any suggestions?
 
 
 
 
 
 
 
 

 

 

 

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Tomasjhussey 

 

Based on your description, I created data to reproduce your scenario. However, It works correctly. I assume that maybe other tables in the data model cause the problem. 

 

Here is my result:

e1.png

 

You may try to create a calculated table as follows.

Year table = Distinct(Forum[Year])

 

Then you can use the 'Year' column in Year table to create the line chart to check whether it appears normal. Please tell me your testing result. Thanks.

 

Best Regards

Allan

 

 

danextian
Super User
Super User

Hi @Tomasjhussey ,

 

Looking at the 3rd chart, there's about 9.9K gain causing a drop. Have you checked on the visual filter? It's probably filtered by something which affects just year 9. Otherwise, could you post your data or model?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi @danextian 

 

Thanks for your interest, the complete data is shown in the matrix. I can't publish the PBIX. 

 

And yes, there is a slicer affecting that visual, in the screenshot you can see that there is a slicer is affecting 2 graphs, also a report level filter for SA and ACT . Other than that there is no visual level filter. 

 

Thanks

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.