Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I am trying to build a matrix table that will show the value as well as the percentage. I have included screenshot below. I am stuck with the grand total percentage as it now shows the grand total of each row instead of 100%.
This is the data source:
I am building the table to show it as is in the matrix format but i am unable to get the column D (state share portion) right. It either will show Grand total as 500% or it will calculate percentage by row to make the grand total of 100%.
Can someone please help?
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
State share percentage: =
SWITCH (
TRUE (),
ISINSCOPE ( 'Product'[Product] ),
DIVIDE (
[Total Quantity:],
CALCULATE ( [Total Quantity:], ALL ( 'Product'[Product] ) )
),
ISINSCOPE ( State[State] ),
DIVIDE (
[Total Quantity:],
CALCULATE (
[Total Quantity:],
ALL ( 'Product'[Product] ),
ALL ( State[State] )
)
),
DIVIDE (
[Total Quantity:],
CALCULATE (
[Total Quantity:],
ALL ( 'Product'[Product] ),
ALL ( State[State] )
)
)
)
Thank you, it works! 🙂
Hi,
I am not sure how your semantic model looks like but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
State share percentage: =
SWITCH (
TRUE (),
ISINSCOPE ( 'Product'[Product] ),
DIVIDE (
[Total Quantity:],
CALCULATE ( [Total Quantity:], ALL ( 'Product'[Product] ) )
),
ISINSCOPE ( State[State] ),
DIVIDE (
[Total Quantity:],
CALCULATE (
[Total Quantity:],
ALL ( 'Product'[Product] ),
ALL ( State[State] )
)
),
DIVIDE (
[Total Quantity:],
CALCULATE (
[Total Quantity:],
ALL ( 'Product'[Product] ),
ALL ( State[State] )
)
)
)
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
12 | |
10 | |
6 |