I have a situation in which I want to calculate the weight percentage for each of the panel type by each sector. However, I do not know how to get the subtotal by Sector.
For example: I want to derive the weight percentage, and I need the denominator value which is the total for each sector and the nominator is the total of all the types under each of sector.
I have a horizotal bar chart that break down the visualisation by sector and by panel types.
For some reason the percentage value I compute using ALL function keep getting the wrong value.
Please be advise that the Sector filter and the Type filter are pull in from two independent dimension tables while the spend amount value is pulled from a fact table.
the following are my measure object (i.e. Sector Spend %) and it is not correct:
Go to Solution.
Hi @Tuffy ,
If I understand correctly, try this out:
SECTOR SPEND % =
Var one =
CALCULATE( SUM( 'Table'[total_invoice_amt] ), ALLEXCEPT( 'Table' , 'Table'[Sector] ))
VAR two =
CALCULATE( SUM( 'Table'[total_invoice_amt] ), ALLEXCEPT( 'Table' , 'Table'[Sector] , 'Table'[Types] ))
two / one
Let me know if that worked for you.
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
Kudos to you if you earned one of these! Check your inbox for a notification.
Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.
Find out where you can attend!