Forum Discussion
Data filtering problem with slicer
hi Anonymous
You need to keep a Kpi type into axis in the visual, here is a similar post for you refer to:
https://community.powerbi.com/t5/Desktop/Dynamic-average-on-X-axis-of-a-bar-chart/td-p/1083576
If you still have the problem, please share your sample pbix file and your expected output.
Regards,
Lin
- v-lili6-msft6 years agoCommunity Support
hi Anonymous
Just try this way as below:
Step1:
Add a dim kpi type table, then use kpi type field in the bar visual
Step2:
Create another two measure as below:
numberpasskpi = SWITCH( SELECTEDVALUE('Table'[KPI Type]), "KPI 1",[numberpasskpi1], "KPI 2",[numberpasskpi2], "KPI 3",[numberpasskpi3])totalkpi = SWITCH( SELECTEDVALUE('Table'[KPI Type]), "KPI 1",[totalkpi1], "KPI 2",[totalkpi2], "KPI 3",[totalkpi3])Step3:
Then drag these two measure into visual
Result:
and here is sample pbix file, please try it.
Regards,
Lin
- Anonymous6 years agoNot applicable
Dear v-lili6-msft ,
Thank you very much for your enthusiastic help, my problem has been resolved.
- Anonymous6 years agoNot applicable
Hi v-lili6-msft ,
I need to calculate the KPI Pass ratio, KPI Pass is a KPI with a value greater than or equal to the threshold:
To do this, I have added 1 "Threshold" column to compare with KPI value. How can I count the number of targets with a percentage greater than "Threshold". I find CALCULATE (COUNTROWS ()) unusable in this case