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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
v-tangjie-msft
Community Support
Community Support

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. 

v-tangjie-msft
Community Support
Community Support

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
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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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