Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
otl_86
Frequent Visitor

If Measures Statements

I have made measures to produce the table below to contail hours filled, hours needed and percentage of hours used.

 

hours filled.PNG

 

On the table below i would like to add another column for when the percentage is in a certain range for ti to be categorised as a level.

 

E.g 

Level 190%-100%
Level 280%-89%
Level 370%-79%
Level 400%-69%
Service re-direction if overall shift fill rate falls below 40%<40%

 

How would I go about doing this.  I have done them as a coloumn but unable to show in the table.

 

Thanks

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @otl_86 

 

As your [% Hours] is a measure, you can create a measure to get the categorised level. For example

Level =
SWITCH (
    TRUE (),
    [% Hours] > 0.9, "Level 1",
    [% Hours] > 0.8, "Level 2",
    [% Hours] > 0.7, "Level 3",
    [% Hours] > 0.6, "Level 4",
    [% Hours] > 0.5, "Level 5",
    [% Hours] > 0.4, "Level 6",
    "Level 7"
)

 

If it is not what you want, please describe the output result you want based on some sample data. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @otl_86 

 

As your [% Hours] is a measure, you can create a measure to get the categorised level. For example

Level =
SWITCH (
    TRUE (),
    [% Hours] > 0.9, "Level 1",
    [% Hours] > 0.8, "Level 2",
    [% Hours] > 0.7, "Level 3",
    [% Hours] > 0.6, "Level 4",
    [% Hours] > 0.5, "Level 5",
    [% Hours] > 0.4, "Level 6",
    "Level 7"
)

 

If it is not what you want, please describe the output result you want based on some sample data. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

Is your level 4 ranges from 40% to 70% otherwise service redirection would not be applicable?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.