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
paulcar
New Member

Cumulative Measures messing with Date Sliders

The idea is to have the cumulative data not be affected even when the start date of the slider is past the entry date of the data.

 

Super confused. Ive been on this for hours and hours.

 

1 ACCEPTED SOLUTION

Hi @paulcar ,

 

I was looking at the Count of editors (assume this is a cumulative calculation based on syntax).

 

Change it to:

 

Count of Editors = 
CALCULATE(
    DISTINCTCOUNT('EDITOR CLIENT DATA'[Editor Ref]);'EDITOR CLIENT DATA'[Editor Ref]<>BLANK();
    FILTER(
        ALL('EDITOR CLIENT DATA');
        'EDITOR CLIENT DATA'[DATE] <= MAX('EDITOR CLIENT DATA'[DATE])))
   

Looking at my tests when I change the date slicer it remains the same value always however when I do the measure like this it gives me 12 instead of 11.

 

Can you check in your model if it works properly?

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @paulcar ,

 

I was looking at your video, and saw that one of your measures as a ALLSELECTED(Date) in this case try to use ALL() function.

 

can you share a sample of your data file? If sensitive send it trough private message.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hey @MFelix ,

Here's the project file:

https://videohusky-my.sharepoint.com/:u:/p/paul_cardenas/EcT2Azr85hZIkc0E62Q1LTIB_AB0kS5bZrXd1zIgscy...

removed the sensitive data so some charts wont be working right.

Hi @paulcar ,

 

I was looking at the Count of editors (assume this is a cumulative calculation based on syntax).

 

Change it to:

 

Count of Editors = 
CALCULATE(
    DISTINCTCOUNT('EDITOR CLIENT DATA'[Editor Ref]);'EDITOR CLIENT DATA'[Editor Ref]<>BLANK();
    FILTER(
        ALL('EDITOR CLIENT DATA');
        'EDITOR CLIENT DATA'[DATE] <= MAX('EDITOR CLIENT DATA'[DATE])))
   

Looking at my tests when I change the date slicer it remains the same value always however when I do the measure like this it gives me 12 instead of 11.

 

Can you check in your model if it works properly?

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hey @MFelix ,

Thanks for your interest. How do I share a sample exactly?

 

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.