Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi
I need a measure that will count. The column is sorted by colors (orange, yellow, blue, green). I need a measure that will count and add up all the blue and green and divide by the total number of all colors blue,green,yellow, orange. Idea of what I need below:
I need a measure that adds the 5 blue+7 green / 15 (all the colors included)
Solved! Go to Solution.
Hi @Anonymous ,
Try this meausre
Measure = var _blue=CALCULATE(COUNT('Table'[Color]),FILTER(ALL('Table'),[Color]="Blue"))
var _green=CALCULATE(COUNT('Table'[Color]),FILTER(ALL('Table'),[Color]="Green"))
var _total=CALCULATE(COUNT('Table'[Color]),ALL('Table'))
return DIVIDE(_blue+_green,_total)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try this meausre
Measure = var _blue=CALCULATE(COUNT('Table'[Color]),FILTER(ALL('Table'),[Color]="Blue"))
var _green=CALCULATE(COUNT('Table'[Color]),FILTER(ALL('Table'),[Color]="Green"))
var _total=CALCULATE(COUNT('Table'[Color]),ALL('Table'))
return DIVIDE(_blue+_green,_total)
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi bossyr94
YourAnswer =
VAR colurcount = COUNT(Table[colour]) = COUNT(Table[color])
VAR allcolourcount = CALCULATE(COUNT(Table[color]),ALL())
RETURN
DIVIDE(colurcount, allcolourcount )
Create table visual with
Colour, count of colur and [YourAnswer]
Please click thumbs up and Accept as Solution. Thak you 😀
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 24 | |
| 24 | |
| 17 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 64 | |
| 41 | |
| 39 | |
| 39 | |
| 38 |