Forum Discussion

KeepCalm007's avatar
KeepCalm007
Helper I
7 years ago

DAX Help - Calculation with Filters for KPI data

 

Hello Power BI community

 

I have a table of KPI data for a list of services.

 

Each service has different KPI light indicator ranges based on the group it is from. I was able to create a column to show KPI lights for each service's quarter 1 results based on their individual targets using the switch function - this is working fine.

 

The problem I have is with the overall group KPI. This is the calculation I am having difficulty with.

 

I have tried combinations of Switch and Calculate and Filter functions, but must be getting the order of things wrong, I have gotten the error message: "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."

 

The KPI result for a group depends on the achievement of the individual services:

 



If it helps, this is a screen snip of the data in Power BI:

 

 

What I want to achieve is having a traffic light KPI show for each Group A-E, based on the results achieved by the individual services within that group.

 

 

Tips and advice appreciated regarding the DAX structure appreciated.

 

 

2 Replies