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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Measure reliability based on number fo events

I have a table that show failure in a line production
I need to create a formular to measure reliability based on the number of events of a specific station

like this
If number of events <50 High reliability
If number of events >=50 and <75 Regular reliability
If number of events >=75 and <99 Medimm Reliability 
If number of events >= 99 and <140 Bad Reliability and lastly
If number of events <140 Non-reliable 

This number of events are filtered by a specific station "DJM370" 

Is this posible?

EC3_0-1602684395191.png

and if a change the date filtered to current month, last week or last 3 months does th reliable value gonna change?

1 ACCEPTED SOLUTION

Hello @EC3 ,

Try the SWITCH() function.

Reliability =
SWITCH (
    TRUE (),
    Actuators[Events] < 50, "High Efficiency",
    Actuators[Events] >= 50
        && Actuators[Events] < 75, "Regular Efficiency",
    Actuators[Events] >= 75
        && Actuators[Events] < 99, "Medium Efficiency",
    Actuators[Events] >= 99
        && Actuators[Events] < 140, "Low Efficiency",
    Actuators[Events] >= 140, "Very Low Efficiency"
)

Best regards

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , seem like you need dynamic segmentation, See if my video can help: https://www.youtube.com/watch?v=CuczXPj0N-k

 

You need to have  an independent table and then use this new table to bin the measure and create anew measure where you can use this bucket

 

or refer: https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization

 

 

Anonymous
Not applicable

Im using this formula that

Reliability - IF(
Actuators[Events] <50,"High Efficiency",
IF(AND(Actuators[Events] > 50,Actuators[Events] <75),"Regular Efficiency",
IF(AND(Actuators[Events] > TM 75, Actuators[Events] <99),"Medium Efficiency",
IF(AND(Actuators[Events] > TM 99, Actuators[Events] <140),"Low Efficiency",
IF(Actuators[Events] >140,"Very Low Efficiency")))))

But the result isn't correct

Captura.PNG



Hello @EC3 ,

Try the SWITCH() function.

Reliability =
SWITCH (
    TRUE (),
    Actuators[Events] < 50, "High Efficiency",
    Actuators[Events] >= 50
        && Actuators[Events] < 75, "Regular Efficiency",
    Actuators[Events] >= 75
        && Actuators[Events] < 99, "Medium Efficiency",
    Actuators[Events] >= 99
        && Actuators[Events] < 140, "Low Efficiency",
    Actuators[Events] >= 140, "Very Low Efficiency"
)

Best regards

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.