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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I need to create a measure which calculates percentage of units completed into the following categories:
Gold >95%, Green 80 -95%, Amber 65-79%, Red <65%
currently the units completed are whole numbers
how can i create colour groups as well
this will act as a KPI to show which colour group each person is in based on the number of units completed
Hi,
Share data in a format that can be pasted in an MS Excel file. Show the expected result clearly.
i cant share the data but i need a dax measure to show different band groups catergorised by colours based on % values.
For example i have units due and units completed and units submitted.
i need to create 4 bands to show how many units completed out of due.
Gold >95%, Green 80 -95%, Amber 65-79%, Red <65%
therefore, if there are 50 units out 50 it should be gold
and 50 out of 60 should be green
@123abc hi thank you for replying.
i have used your dax measure for colour banding however it is showing them all as Red even if its 100%
Create a DAX measure to calculate the percentage of units completed:
Completion Percentage = DIVIDE(SUM(YourTable[Units Completed]), COUNTROWS(YourTable), 0)
This measure uses the DIVIDE function to calculate the percentage of units completed. It sums up the "Units Completed" column and divides it by the total number of rows in the table.
Color Band =
SWITCH(TRUE(),
[Completion Percentage] > 95, "Gold",
[Completion Percentage] >= 80, "Green",
[Completion Percentage] >= 65, "Amber",
"Red"
)
This measure uses the SWITCH function to assign a color band based on the percentage calculated in the previous step. It checks the value of the "Completion Percentage" measure against your specified thresholds and assigns the appropriate color.
Now, when you use these measures in your visualizations, you'll see the "Completion Percentage" and "Color Band" for each person, and the "Color Band" will categorize them into Gold, Green, Amber, or Red based on the completion percentage.
Make sure to replace "YourTable" with the actual name of your table and "Units Completed" with the actual name of your column containing the units completed data in your Power BI dataset.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
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!