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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
gustavoamolina
New Member

Cumulative plot filtering error

Hello!

I have some cumulative plots in my dashboard but when I try to filter it does not work. 

gustavoamolina_1-1693832501257.pnggustavoamolina_2-1693832514194.png

 

Every time when there is no data to be added the measure place the minimum value intead of the cumulative value.

This is the measure that I've used: 

cumulativetimepercycle = CALCULATE(COUNT(Hood[Time of usage]),FILTER(ALL('Hood'),Hood[Time of usage]<=MAX(Hood[Time of usage])))
1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @gustavoamolina ,

If I understand correctly, it seems that the culmulative values not display correctly when apply the filter. Am I right? Please update the formula of measure [cumulativetimepercycle] as below and check if it can return your expected result...

cumulativetimepercycle =
CALCULATE (
    COUNT ( Hood[Time of usage] ),
    FILTER (
        ALLSELECTED ( 'Hood' ),
        Hood[Time of usage] <= SELECTEDVALUE ( Hood[Time of usage] )
    )
)

If the above one didn't help you, please provide some raw data in your table 'Hoodwith Text format, the filter settings and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @gustavoamolina ,

If I understand correctly, it seems that the culmulative values not display correctly when apply the filter. Am I right? Please update the formula of measure [cumulativetimepercycle] as below and check if it can return your expected result...

cumulativetimepercycle =
CALCULATE (
    COUNT ( Hood[Time of usage] ),
    FILTER (
        ALLSELECTED ( 'Hood' ),
        Hood[Time of usage] <= SELECTEDVALUE ( Hood[Time of usage] )
    )
)

If the above one didn't help you, please provide some raw data in your table 'Hoodwith Text format, the filter settings and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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