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

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.

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?










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


Proud to be a Super User!









"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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.