March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello and thanks in advance.
I'm a beginner user and need to add a filter to this slicer, specifically for this "Turkey Time" contest.
There's a game being played, Know our Product, that I need to filter out that was played between Nov 7-18.
This same game was played on earlier dates, so I don't want to remove it from other contests.
Can I add that here?
Solved! Go to Solution.
Hi @bcbuckley13 ,
If you want to include all of the other games within those dates, EXCEPT for the "Know our Product".
Please have a try.
contest=switch(true(),table[played on]>=date(2022,11,7)&&table[played on]<=date(2022,11,18)&&table[game name]<>"Know Our Product","&_Turkey Time",blank()
Add the &&table[game name]<>"Know Our Product" after the <=date(2022,11,18).
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @bcbuckley13 ,
Remove the comma.Pay attention to these small details.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I actually want to do the opposite. I want to include all of the other games within those dates, EXCEPT for the "Know our Product".
Hi @bcbuckley13 ,
If you want to include all of the other games within those dates, EXCEPT for the "Know our Product".
Please have a try.
contest=switch(true(),table[played on]>=date(2022,11,7)&&table[played on]<=date(2022,11,18)&&table[game name]<>"Know Our Product","&_Turkey Time",blank()
Add the &&table[game name]<>"Know Our Product" after the <=date(2022,11,18).
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I'm getting this error. I'll try and upload a pbix file.
Hi @bcbuckley13 ,
Remove the comma.Pay attention to these small details.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much!!! This worked. So much to learn about PBI still.
Question....can I use Switch twice on the same table? I'm trying to duplicate this one, but then not include the game names.
Hi @bcbuckley13 ,
If you only want to add the Know our Product between Nov 7-18., you can add it.
Please have a try.
contest=switch(true(),table[played on]>=date(2022,11,7)&&table[played on]<=date(2022,11,18)&&table[game name]="Know Our Product","&_Turkey Time",blank()
Add the &&table[game name]="Know Our Product" after the <=date(2022,11,18).
If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |