Forum Discussion

Graciex123's avatar
Graciex123
Frequent Visitor
3 years ago

Power BI - Dynamic measures inside disconnected table

I have a KPI report with 13 different datasets. For each KPI there is a measure to calculate the actual KPI score which later will be transformed to a score on a scale from 1-5.
There is also a Region/Country/Site core data with relationship to all datasets. So from slicers all of the measures are able to slice on region, country & site.

For my last part of the report I now need to put all of the measure to their corresponding name in a table and from there I need to make a new column with calculations based on the scale.

Example of free from table/disconnected table below

 

NumberKPI NameActualScale12345Actual Score (1-5) after Scaling
1Stakeholder Satisfaction Index[Measure1] (example 3)+/- 12.533.544.5(calculated column) (example score from measure on the scale equals to 2)
2User Experiance Survey[Measure2]+/- 12.83.33.84.34.8(calculated column)
3Service Point Survey[Measure3]+/- 12.83.33.84.34.8(calculated column)
4Service Request Feedback[Measure4]+/- 12.83.33.84.34.8(calculated column)
5Food Waste[Measure5]+/- 0.050.0180.0430.0680.0930.118 (calculated column)

 

I have tried this code below as a start to build this but I got stuck now when the measure doesn't filter based on the slicer.

How can I build this table? It needs to be able to calculate the last column (Actual Score after Scaling) based on the measure. But also it needs to respond to the slicers.

 

 

UNION(
ROW("KPI", "Food Waste", "Actual", CALCULATE('Food Waste'[Actual Food Waste],'Site Core Data'[Region] = SELECTEDVALUE('Site Core Data'[Region]))))

 

No RepliesBe the first to reply