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
Help! I will need to create a pie chart that shows the top 5 by Rank (1-5) and group all the rest (Rank 6-9) into an 'Other' category. I'm pretty new at this - be gentle! Thanks in advance!
My table is called CoolSports
Here's the data in my table:
| CATEGORY | ROW_COUNT | RANK |
| WaterSki | 812 | 1 |
| SnowSki | 727 | 2 |
| Biking | 699 | 3 |
| Mountain_Bike | 547 | 4 |
| Swim | 358 | 5 |
| Hiking | 210 | 6 |
| Telemark | 175 | 7 |
| Walk | 50 | 8 |
| Jog | 23 | 9 |
Solved! Go to Solution.
You can do this with the Charticulator visual. See example below. The key is to make a measure like the one below along with the Category and Row Count columns in your visual, and then Group By the new measure and make it a radial scaffold.
(3) Charticulator: Now a Power BI Custom Visual! (with Daniel Marsh-Patrick) - YouTube
Top5 =
VAR top5 =
TOPN (
5,
ALLSELECTED ( CategoryRank[CATEGORY] ),
CALCULATE ( SUM ( CategoryRank[ROW_COUNT] ) ), DESC
)
VAR thiscategory =
SELECTEDVALUE ( CategoryRank[CATEGORY] )
VAR result =
IF ( thiscategory IN top5, thiscategory, "Others" )
RETURN
result
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I tried the suggested solution, it didn't work - back to square one.
You can do this with the Charticulator visual. See example below. The key is to make a measure like the one below along with the Category and Row Count columns in your visual, and then Group By the new measure and make it a radial scaffold.
(3) Charticulator: Now a Power BI Custom Visual! (with Daniel Marsh-Patrick) - YouTube
Top5 =
VAR top5 =
TOPN (
5,
ALLSELECTED ( CategoryRank[CATEGORY] ),
CALCULATE ( SUM ( CategoryRank[ROW_COUNT] ) ), DESC
)
VAR thiscategory =
SELECTEDVALUE ( CategoryRank[CATEGORY] )
VAR result =
IF ( thiscategory IN top5, thiscategory, "Others" )
RETURN
result
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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 |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |