cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rogerh
Helper II
Helper II

Percentage of grand total, Create a measure that can be used in another calculation

Hello Power BI Community,

 

I'm having trouble trying to work out how to create a measure that is a Persentage of a grand total so I can use the measure in another calculation. I know you can update a Measure to be a percentage of a grand total (as shown below) but I am unable to use that for the next calculation.

 

My table is currently set up as follows:

 

Weekday = from my Calander Table

Orders_Count_Orders = Measure for Total of Orders placed 

 

The next column is what I want to change to be an actual measure but it is currently made up of the 'Orders_Count_Orders' using the drop down in the values to change it to the show value as a percentage of grand total

 

%GT Orders_Count_Orders = Measure for Total of Orders placed, show value as to percentage of grand total

 

Can someone please help me with the Dax code for making this measure?

 

WeekdayOrders_Count_Orders%GT Orders_Count_Orders
Mon93215.49%
Tue116019.28%
Wed111818.58%
Thu85014.13%
Fri77012.80%
Sat5859.72%
Sun6019.99%

 

Thank you in advance for any help

Roger

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Rogerh , Try a measure like

 

divide(sum(Table[Orders_Count_Orders]) , calculate(sum(Table[Orders_Count_Orders]) , allselected(Table)))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

3 REPLIES 3
negi007
Super User
Super User

@Rogerh  use below measure
GT_% = SUM('%GT'[Orders_Count_Orders])/CALCULATE(SUM('%GT'[Orders_Count_Orders]),ALLSELECTED('%GT'))



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos


Proud to be a Super User!

Follow me here


amitchandak
Super User
Super User

@Rogerh , Try a measure like

 

divide(sum(Table[Orders_Count_Orders]) , calculate(sum(Table[Orders_Count_Orders]) , allselected(Table)))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Perfect, thank you your help @amitchandak ! Saved me again 🙂 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!