Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi I am struggling with getting the percentages in powerbi. I have seen percentage calculation in columns but not in rows in a matrix table.
In my Excel it looks like this:
I do not know how to calculate the %approved (which is the percentage of total approved from grand total) . is it possible to compute for that and have it as a row and not a column (coz im finding percentage calculation mostly for columns)
Solved! Go to Solution.
You may add the following measure.
Measure = IF ( HASONEVALUE ( Table1[Status] ), SUM ( Table1[Value] ), FORMAT ( DIVIDE ( CALCULATE ( SUM ( Table1[Value] ), Table1[Status] = "Approved" ), SUM ( Table1[Value] ) ), "0.00%" ) )
You may add the following measure.
Measure = IF ( HASONEVALUE ( Table1[Status] ), SUM ( Table1[Value] ), FORMAT ( DIVIDE ( CALCULATE ( SUM ( Table1[Value] ), Table1[Status] = "Approved" ), SUM ( Table1[Value] ) ), "0.00%" ) )
thanks @v-chuncz-msft this really works!
however though i cannot put in the same matrix table. its not possible right!
but anyways thank you very much!
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
79 | |
61 | |
60 | |
58 |
User | Count |
---|---|
151 | |
113 | |
99 | |
80 | |
72 |