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
Hi Experts,
Can you help me with a measure so I can show the percentage by Service on the following bar chart:
So for Total Services, the % would be (by Illness Burden Category per example above):
The data looks like this:
And the Illness burden category is a field parameter:
When I switch to Age range and Gender, I also want the chart to show % of total by Service.
Thanks in advance 🙂
Soph
Hey @Anonymous
Apologies for the confusion. The use of SUM('Table'[Count]) and [Total Count] in my previous response was incorrect. There is no difference between them, and it was an oversight on my part.
To clarify, you only need to create the "Total Count" measure using the formula. Hope this helps!
Hi @Anonymous
I think the following steps should help in solving this problem:
Total Count = SUM('YourTable'[YourCount field])
Percentage by Service = DIVIDE(SUM('Table'[Count]), [Total Count])
Please cross check that you have the appropriate relationships established between the tables in your data model to ensure accurate calculations.
If this has solved your problem, please mark my post as solution.
Cheers
Thanks @data_freak - just a quick Q - for the % by service measure, what's the difference between SUM('Table'[Count]) and Total Count?
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 |
|---|---|
| 48 | |
| 43 | |
| 39 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 30 | |
| 23 |