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
tusharkumar
Frequent Visitor

How to show 100% total for each month for all legends combined rather than 100% total of all data.

Hi, I have attached the screenshots for refernece. Please check. Your kind help is very much appreciated. 

I am supposed to dislay 100% total for each month, (please refer to the image attached) for say - all three dots of July should up to 100%, but currently all the dots from May to September add up to 100%. And I'm bound to use this simple line chart only. 

I want to display 0-100% range on y-axis but not by manually changing the range value from format visual option. That won't work  in this case anyways. 

Please Note : I fear, I can't attach this .pbix file to this question as it has some confidentional data of patients. 

Thank You! Kindly Help
As you can see the %ge is distributed over all the months.As you can see the %ge is distributed over all the months.

 

I've these columns as of now.I've these columns as of now.

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Count = countrows(Discharge dur to death)

Count across all exceptions = calculate([Count],all(Discharge dur to death[Exception]))

% = divide([Count],[Count across all exceptions])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Try these measures

Count = countrows(Discharge dur to death)

Count across all exceptions = calculate([Count],all(Discharge dur to death[Exception]))

% = divide([Count],[Count across all exceptions])

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you so much, Ashish. It works 🙂 Can't thank you enough. 

 

Screenshot_7.jpg

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
HoangHugo
Solution Specialist
Solution Specialist

hi, can you share Dax of measure %GT Count of Status

amitchandak
Super User
Super User

@tusharkumar ,when you use the line on the clustered line visual, it will not split by legend so you can not show % of Subtotal using that

 

% of Subtotal = Divide(Count(Table[Status]), Calculate(Count(Table[Status]), removefilters(Table[Exception])))

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.