Forum Discussion
Data filtering problem with slicer
Hi v-lili6-msft ,
I know that with measure I can filter data by slicer, but the problem is how to display 3 values 'Number of Pass', 'Number of Fail' and 'Total' for each KPI as I wish.
With Measure list, I can only display them as adjacent columns:
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
- Anonymous6 years agoNot applicable
- 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.