cancel
Showing results for 
Search instead for 
Did you mean: 
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
Community Champion
Community Champion

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

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Kudoed Authors