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.
Hi everyone,
I have one table.
I want to display "sales", based on Slicer selection.
I have taken "State" into slicer. When choose state in slicer, show all state wise sales, except slicer selection.
Please help on this.... Thanks in Advance.....
Solved! Go to Solution.
Hi @venug20,
Normal slicer not support exclude filter affect, you need to do some custom steps with a measure as filter to achieve this effect.
Please take a look at attachment files if it works on your side.
Regards,
Xiaoxin Sheng
Hi @venug20,
Normal slicer not support exclude filter affect, you need to do some custom steps with a measure as filter to achieve this effect.
Please take a look at attachment files if it works on your side.
Regards,
Xiaoxin Sheng
Hi @v-shex-msft / Xiaoxin Sheng,
Thank you very much for your reply. It's really great work. I am really apriciate your efforts.
Please let me explain, what i am expecting output. Please see below snapshots...
When i take "State" wise sales into visual, it show like below... (Total is : 1,37,15,444.31)
when i exclude state as "Abia" using basic filter (Visual level), it show like below... (Total is : 1,37,14,380.19)
You provided file shown state wise sales, when i exclude state as "Abia" from slicer. it show like below... (Total is : 9,08,620.78)
here some state sales are missing, your approch is 100% correct.
but State wise sales total giving wrong. Please suggest to is there any way to get correct output....
Please help on this requirement.....
Once again thank you for your reply....
@venug20 Please remove "Market" field from the second visual, then the counts will match as expected.
Proud to be a PBI Community Champion
Thanks @v-shex-msft it is working fine...
Thanks @PattemManohar. you suggestion is perfect...
Can you explain step by step, how it's working...
Hi @venug20,
Selector table is used to be the source of slicer, that you can use 'allselected' function to get selected items from slicer.
Selectedvalue function is used to get current row content, then you can compare selected items and current row content to return tag Y if current row are in selected items.
Drag this measure to visual level filter and keep 'N' tag records which means not include in selected items.
Notice: please not create relationship from selected table to original table, it will keep slicer operation only works on measure and not filter on original table.
Reference links:
Regards,
Xiaoxin Sheng
@venug20 Just want to understand, what is the scenario or reason behind to use the Slicer as an exclusion criteria.
Proud to be a PBI Community Champion
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |