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
I am attempting to create a custom column classifying count values into ranges of specified interest via the following:
if [count] = null then "< 2" else
if [count] < 2 then "< 2" else
if [count] >= 2 and [count] <= 3 then "2 - 3" else
if [count] = 4 then "4" else
if [count] >= 5 then "5 +" else ""
However, the results being returned are inconsistent at times. The vast majority of values are correctly assigned to the required ranges, but at times I am noticing counts of various amounts getting classified incorrectly such as 12 and 8 falling into "4" or a count of 8 falling into "2-3".
I'm fairly new to PowerBI and am uncertain on the approach to take from here.
Solved! Go to Solution.
can you provide a picture of the data rows that get classified wrongly please?
can you provide a picture of the data rows that get classified wrongly please?
Thanks for the quick response, I found the real error I am seeing. The classifications from the query were indeed correct, but in a visual I am currently using the field is getting summarized incorrectly in the tooltips. Marked your response as the solution and pursuing the error I am seeing otherwise.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 5 | |
| 3 |