Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I am calculating KPI for Actuals vs Target, the target and actuals are Average values and I get single value however as soon as i add KPI into the visual i get three different KPI whereas the KPI were to be calculated based on the average of actuals and target. I am trying to get KPI when multiple dates are selected from slicer. I also have different targets for different months. for example, in the table below I wanted to get a single KPI for average of target and average of Actual. I am using a date filter and Room Name filter in this table visual.
the KPI for this visual was supposed to be bad as the average of actual is over the Average of target value.
How can i make sureto get a single KPI in this condition, i am using this kpi to format my Gauge Axis Visual. how to get a single value for Average of Target and Actual when i select multiple or a single date from the slicer.
Thank you !
Solved! Go to Solution.
Hi @v-shex-msft ,
I was Expecting this result:
Which is average of Target and Actual and KPI accordingly.
Thank You!!
Hi @v-shex-msft and All,
I figured out the solution myself, below is the DAX if you stumble upon same issues,
Hi @v-shex-msft and All,
I figured out the solution myself, below is the DAX if you stumble upon same issues,
Hi @Rabi ,
Can you please share some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @v-shex-msft ,
I was Expecting this result:
Which is average of Target and Actual and KPI accordingly.
Thank You!!
HI @Rabi,
In fact, I want some dummy data and the expression that you used to test. They will help us clarify the data table structure and test to coding formula to create visualizations. (you can create in excel and paste in thread with table format)
BTW, did these three fields from different expressions and use on the matrix value fields?
If that is the case, you can create a new table these field names and use on matrix column. Then you can write a formula with switch function to check current column value and redirect to different measure expressions to show on the matrix.
Regards,
Xiaoxin Sheng
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
26 | |
20 | |
18 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
24 | |
22 | |
21 |