Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
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
Hello everybody,
In power BI desktop I would like to get the porcentage of subotals for rows and lines.
Here is my matrix :
I have my hours for lines, week day for columns and the count of my tickets as a value, I activate subtotal for columns and lines( in the format parameters of the matrix) and I would like to add one columns and one line(or add the percentage directly with the subttotal column and line) with the percentage for my subtotal compare to the general total. How can I do to add only one column and one line for the subtotal ? thank you
Solved! Go to Solution.
You can't do this with native visuals. You'd have to look at Deneb or some other custom visual
But with those measures I get de percentage for each columns(monday,tuesday etc) and I would like to get the percentage only for subtotal, how can I do that ? thank you in advance
Var grandtotal=
Calculate([Measure], Allselected())
Return
If(
( Not Isinscope(table[month]) && isinscope(table[hour])) ||
( Isinscope(table[month]) && not isinscope(table[hour])),
Format(
Divide([Measure], grandTotal),
"#%"
),
[Measure]
)
I get the good result but as the other solutions, I have one column for each days and I want only one column for my total, how can I choose the display of the columns ? thanks
Can you share a image of what you want it to look like
Something like with all sub percentage for the total of axis Y and the same for the the subtotal of axix X
You can't do this with native visuals. You'd have to look at Deneb or some other custom visual
@Anonymous Create measures
TotalTickets = SUM('YourTable'[TicketCount])
SubtotalTickets = SUMX(ALLSELECTED('YourTable'), 'YourTable'[TicketCount])
PercentageOfTotal = DIVIDE([SubtotalTickets], [TotalTickets], 0)
Add the PercentageOfTotal measure to your matrix, and it will display the percentage of each subtotal compared to the total. This approach ensures that you have a dynamic calculation that respects the context of your matrix, showing the correct percentages for both rows and columns
Proud to be a Super User! |
|
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |