Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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] )
)
)
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 9 | |
| 5 | |
| 5 |