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
alicewang96
Helper I
Helper I

Cluster column and line chart not showing totals properly with slicer

I have a measure which calculates the running total of the % spent of a budget each month. The table this results in looks like:

capture_1.PNG

The expression used in the measure is:

% of Budget Spent = DIVIDE(CALCULATE(SUM(table_1[Amount Paid]),FILTER(ALLSELECTED(table_1), RELATED(date_table[Date])<=MAX(date_table[Date]))),1000000,0)
with $1M being the total budget.
 
I also have a cluster chart which should separate the % displayed in the table by whether it is in or out of state. I have a slicer at the top of the page which allows users to filter. When the filter is set to "All" the % spend for the graph is displayed incorrectly. For in-state, the graph displays the total % spent (in state and out of state), while the number displayed for out of state is completely incorrect:
capture_2.PNG
 
However, when the filter is set to either in-state OR out of state, the chart displays the correct %. 
 
How can I adapt my measure to do this?

 

 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @alicewang96 ,

 

It's hard to analyze the problem just with formula and see if you can share the sample pbix file through a cloud service like onedrive for business.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.