Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Name | File Creation Date | Last Visit Date | Over2Years_File Creation Date | Over2Years_Last Visit Date |
Mary | ######## | ######## | Yes | No |
Tom | ######## | ######## | Yes | Yes |
Judy | ######## | ######## | No | No |
Amy | ######## | ######## | No | No |
I want to create a field switch. Something like this
If I click Last Visit Date, the date slicer will show Last Visit Date and the Over2Years slicer will show Over2Years_Last Visit Date.
Is it possible to change multiple slicer fields based on one field switch?
Any advice is appreciated. Thanks!
https://drive.google.com/file/d/13nALR8F99aM1G2boH24UnwuQTqDbOazg/view?usp=sharing
Btw how can I upload PowerBI file directly here?
Solved! Go to Solution.
Hi @cheryl0316 ,
Please try the following methods and check if they can solve your problem:
1.Create the two simple tables.
2.Create the new measure to filter.
Field Selected = IF ( SELECTEDVALUE ( 'FieldTable'[Field Switch] ) = "Last Visit Date", 1,0 )
3.Drag the measure into the date slicer and Over 2 years slicer. Select the show items is 1.
4.Select the Last Visit Date in the Field slicer. The result is shown below.
For the upload file question, only upload files directly if you are a super user or a support member.
Solved: How to upload PBI in Community - Microsoft Fabric Community
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @cheryl0316 ,
Please try the following methods and check if they can solve your problem:
1.Create the two simple tables.
2.Create the new measure to filter.
Field Selected = IF ( SELECTEDVALUE ( 'FieldTable'[Field Switch] ) = "Last Visit Date", 1,0 )
3.Drag the measure into the date slicer and Over 2 years slicer. Select the show items is 1.
4.Select the Last Visit Date in the Field slicer. The result is shown below.
For the upload file question, only upload files directly if you are a super user or a support member.
Solved: How to upload PBI in Community - Microsoft Fabric Community
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Wisdom,
Thanks for your reply. I have applied your method on my dashboard. Not sure if I did something wrong but the date slicer doesn't seem to work. Could you please have a look? Thank you.
https://drive.google.com/file/d/13nALR8F99aM1G2boH24UnwuQTqDbOazg/view?usp=sharing
You cannot set slicer values programmatically. The slicer options you see are dictated by the data model and the current filter context.
This can lead to confusion when a previously selected choice is no longer part of the filter context. This can lead to outright data leakage when RLS is involved. That's why you should never mix RLS with default slicer choices.
You can only upload files directly if you are a super user or a support member.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
84 | |
69 | |
68 | |
39 | |
37 |