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,
I have data from a survey for 1000+ respondents asking what customers are using today vs tomorrow split across 4 dimensions.
The percentage is calculated as a ratio of that category to the overall count.
But when I use the Filters Pane to only show one of the categories, the percentage is recalculated on the new base as per the Filters. Is there a way it is calculated on the grand total and not the sliced value for that. Is there any workaround to avoid this?
Here's the sample graph - overall (first image) and the Filtered for USE NOW category only (second image):
Is there a way I can calculate the the percentage for individual category (e.g. USE NOW in this example) (when filtering on visual for that category) over the grand total instead of the total rows after filtering.
Here's what the table structure looks like.
Thanks in advance.
Cheers,
Nikhil
Solved! Go to Solution.
Hi @batranikhil ,
Create a measure as below:
Measure =
var _count1=CALCULATE(COUNT('Table'[Value]),FILTER(ALL('Table'),'Table'[Value]=MAX('Table'[Value])&&'Table'[Attribute]=MAX('Table'[Attribute])))
var _count2=CALCULATE(COUNT('Table'[Attribute]),FILTER(ALL('Table'),'Table'[Attribute]=MAX('Table'[Attribute])))
Return
DIVIDE(_count1,_count2)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Hi @batranikhil ,
Create a measure as below:
Measure =
var _count1=CALCULATE(COUNT('Table'[Value]),FILTER(ALL('Table'),'Table'[Value]=MAX('Table'[Value])&&'Table'[Attribute]=MAX('Table'[Attribute])))
var _count2=CALCULATE(COUNT('Table'[Attribute]),FILTER(ALL('Table'),'Table'[Attribute]=MAX('Table'[Attribute])))
Return
DIVIDE(_count1,_count2)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Thanks Kelly. Will try this. Thanks!
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 |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |