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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Bosu
Frequent Visitor

Cumulative Line disappears in "Percent of grand total mode"

Hi All!

I have been struggling with this issue for two days now and decided to get a helping hand.

The issue is that one of three cumulative lines disappears on my Line and Clustered Column chart after changing the "Show as value" parameter to "Percent of grand total" mode. The remaining lines don't have that issue. 

I tried fixing this with a workaround, creating a separate table to calculate the percentages manually, but when I did that, the total of one of the series did not add up to 100%! My mind is fried at this point. Maybe any of you will have an idea of where I could have made a mistake.

Here are the DAXes for my lines for context. The last one is the troublesome one.



Baseline % Planned = 

CALCULATE(
	SUM(DAX_ManDays[ManDays_All_BL]),
	FILTER(
		ALLSELECTED(DAX_ManDays[Calendar days (bins)]),
		ISONORAFTER(DAX_ManDays[Calendar days (bins)], MAX(DAX_ManDays[Calendar days (bins)]), DESC)
	)
)

 

Forecast Duration % = 
	CALCULATE(
		IF(
			MAX(DAX_ManDays[Calendar days]) >= MAX(DAX_ManDays[Schedule Update Date]),
			SUM(DAX_ManDays[ManDays_All_New])
			),           
                FILTER(
                    ALLSELECTED(DAX_ManDays[Calendar days (bins)]),
                    ISONORAFTER(DAX_ManDays[Calendar days (bins)], MAX(DAX_ManDays[Calendar days (bins)]), DESC)
                )
            )

 

Earned Duration % = 
	CALCULATE(
		IF(
			MAX(DAX_ManDays[Calendar days (bins)]) < MAX(DAX_ManDays[Schedule Update Date]),
			SUM(DAX_ManDays[ManDays_All_New])
			),           
                FILTER(
                    ALLSELECTED(DAX_ManDays[Calendar days (bins)]),
                    ISONORAFTER(DAX_ManDays[Calendar days (bins)], MAX(DAX_ManDays[Calendar days (bins)]), DESC)
                )
            )

 

Also, image of the graph with the Percent of the grand total turned off for all the lines - working well, and with the Percent of the grand total turned on - missing the first line.

Bosu_0-1705504067467.png

Bosu_1-1705504102601.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Bosu ,

 

You can create measures. Then place [% measure 1], [% measure 2] and [% measure 3] on the visual object.

 

Total Measure 1= CALCULATE([Baseline % Planned],ALL('DAX_ManDays'))

Total Measure 2= CALCULATE([Forecast Duration %],ALL('DAX_ManDays'))

Total Measure 3= CALCULATE([Earned Duration %],ALL('DAX_ManDays'))

% Measure 1= DIVIDE([Baseline % Planned],[Total Measure 1],0)

% Measure 2= DIVIDE([Forecast Duration %],[Total Measure 2],0)

% Measure 3= DIVIDE([Earned Duration %],[Total Measure 3],0)

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

2 REPLIES 2
Bosu
Frequent Visitor

Thank you! That worked!

I still need to learn a lot about DAX. I'm not sure if I encountered a bug or if I did something wrong. 

FYI, I performed a minor modification from 

% Measure 3= DIVIDE([Earned Duration %],[Total Measure 3],0)

To

% Measure 3= DIVIDE([Earned Duration %],[Total Measure 2],0)

 

But that's due to my data structure. 

Anonymous
Not applicable

Hi @Bosu ,

 

You can create measures. Then place [% measure 1], [% measure 2] and [% measure 3] on the visual object.

 

Total Measure 1= CALCULATE([Baseline % Planned],ALL('DAX_ManDays'))

Total Measure 2= CALCULATE([Forecast Duration %],ALL('DAX_ManDays'))

Total Measure 3= CALCULATE([Earned Duration %],ALL('DAX_ManDays'))

% Measure 1= DIVIDE([Baseline % Planned],[Total Measure 1],0)

% Measure 2= DIVIDE([Forecast Duration %],[Total Measure 2],0)

% Measure 3= DIVIDE([Earned Duration %],[Total Measure 3],0)

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.