Reply
ManuelGeiger
Helper I
Helper I
Partially syndicated - Outbound

DAX to summarize multiple ratings

Hi all,

 

I would like to create a measue to show the overall oil condition of multiple different oil tests.

In the screenshot below you can see different results for multiple components of one maschine (action needed (action), caution, normal (all good)) and I would like to summarize those results to show them in an end result per maschine.

The logic should be this:

All components normal -> result: normal

At least one component caution but rest normal -> result: caution

At least one component action -> result: action

 

Maybe someone has an idea how to create such measure?

ManuelGeiger_0-1669042560658.png

 

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

Syndicated - Outbound

Try to create a new with the code below:

Measure =
VAR _min = MIN(TableName[Ranking])
RETURN
IF(
     _min = "Action",
    "Action",
    IF(
         _min = "Caution",
        "Caution",
        "Normal"
      )
)
 
I tried and it worked like this:
FreemanZ_0-1669045708753.png
 
dataset:
FreemanZ_1-1669045727670.png

 

 

View solution in original post

2 REPLIES 2
ManuelGeiger
Helper I
Helper I

Syndicated - Outbound

Works perfectly fine, thank you!

FreemanZ
Super User
Super User

Syndicated - Outbound

Try to create a new with the code below:

Measure =
VAR _min = MIN(TableName[Ranking])
RETURN
IF(
     _min = "Action",
    "Action",
    IF(
         _min = "Caution",
        "Caution",
        "Normal"
      )
)
 
I tried and it worked like this:
FreemanZ_0-1669045708753.png
 
dataset:
FreemanZ_1-1669045727670.png

 

 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)