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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Patrick2
New Member

Dynamic calculation of key performance indicators

Good day,

 

We are building a dashboard for our sales team. There are multiple key performance indicators (KPI) which categorize our clients. In my example here we use: MEAN, MAX, SUM and STD.  

 

Now, we want the KPI to re-calculate based on the filter "year". 

 

 

Example 

 

MEAN (over all years): 0,07

Click on Filter 2016

Power BI recalculates the Field

MEAN (for 2016 only): X,XX

 

Our current simplified setup looks like this

 

 Screenshot(1).png

 

Wert = SUMMARIZE('Shipments';'Shipments'[Local Client];"SUM";CALCULATE(SUM(Shipments[Value])); 
"MAX"; CALCULATE(MAX(Shipments[Value])); "MEAN"; CALCULATE(AVERAGE(Shipments[Value]));
"STD"; CALCULATE(SQRT(VAR.P(Shipments[Value]))))

 

Right now the values won't re-calculate. 

 

What are we missing?

 

Thank you very much

 

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Patrick2,

 

As calculated table data is static since it is initialized, it won't dynamically change depend on slicer selection. To achieve your requirement, you should create measures:

 

MEAN=AVERAGE(Shipments[Value])
MAX=MAX(Shipments[Value])
SUM=SUM(Shipments[Value])
STD=CALCULATE(SQRT(VAR.P(Shipments[Value])))

 

Add above measures and 'Shipments'[Local client] into visual.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @Patrick2,

 

As calculated table data is static since it is initialized, it won't dynamically change depend on slicer selection. To achieve your requirement, you should create measures:

 

MEAN=AVERAGE(Shipments[Value])
MAX=MAX(Shipments[Value])
SUM=SUM(Shipments[Value])
STD=CALCULATE(SQRT(VAR.P(Shipments[Value])))

 

Add above measures and 'Shipments'[Local client] into visual.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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