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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.