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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
ManuelGeiger
Helper I
Helper I

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

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

Works perfectly fine, thank you!

FreemanZ
Super User
Super User

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

 

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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