Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello everyone,
I have a column which defines each row like below.
Column =IF(V_OKM_0[Periyod]<601;""Active"";""Passive"")
then, I show percentage of ""Passive"" on a card.
Measure = CALCULATE(SUM(V_OKM_0[Pasif])/(SUM(V_OKM_0[Aktif])+SUM(V_OKM_0[Pasif])))
But I would like to have a slicer includes values of 301, 601, 901 instead of a set value like 601 in example above. Is it possible to do?
If slicer is 601,
Periyod - Column
400 - Active
700 - Passive
1000 - Passive
So, result is %66
If slicer is 901,
Periyod - Column
400 - Active
700 - Passive
1000 - Passive
So, result is %33
Thanks a lot.
Solved! Go to Solution.
Hi Atat0105,
You will need to use a disconnected table here.
Instead of "hardcoding" the IF in your column to <601 you can pass a slicer value through.
Click "Enter data" and build a table like below/ the measure shown in the formula bar.
Once you do this pass that measure into the calculated column like so:
When you are using disconnected tables you allow yourself to pick what you want to slice on. Connect the tables within Power BI to filter correctly. Once you select a value from that disconnect table it will pass that value into the rest of your functions.
Hope this helps,
Christian
Hi Atat0105,
You will need to use a disconnected table here.
Instead of "hardcoding" the IF in your column to <601 you can pass a slicer value through.
Click "Enter data" and build a table like below/ the measure shown in the formula bar.
Once you do this pass that measure into the calculated column like so:
When you are using disconnected tables you allow yourself to pick what you want to slice on. Connect the tables within Power BI to filter correctly. Once you select a value from that disconnect table it will pass that value into the rest of your functions.
Hope this helps,
Christian
Can you provide some sample data so that we can mock this up?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 41 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 68 | |
| 32 | |
| 32 | |
| 32 |