Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Everyone
Challenge: I created a stacked column chart visualizing monthly order counts by city. Each column represents total orders for a month, broken down by individual cities in the legend. However, there are numerous cities with order counts consistently below 5 per month.
Goal: I want to group these low-volume cities (order count < 5) under a single category named "Others" in the chart legend. This should be dynamic and adapt to any slicer selections applied to the report.
Additional Context: The chart displays data on a monthly basis with order counts on the y-axis and months on the x-axis. The legend currently shows individual city names.
I would appreciate any help!
Thank you!
Rashid Anwar
Solved! Go to Solution.
Hi @rashidanwar ,
Below is my table:
The following DAX might work for you:
City1 = IF('Table'[Data] < 5,"Other",'Table'[City])
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @rashidanwar ,
Below is my table:
The following DAX might work for you:
City1 = IF('Table'[Data] < 5,"Other",'Table'[City])
The final output is shown in the following figure:
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |