Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have a need for a slicer that only shows rows that have a flag of true. Unfortunately, my data currently only has data with the false flag.
I have tried a few differnet things, but really no luck. The false data continues to show when right now, nothing should be showing in my table visual.
The Flag is based off of a Calculated column. If a date is in between a From Date and To Date, it is TRUE, else it is FALSE.
Currently what I see is this:
User ID | Task | Count | Between Dates |
1 | A | 50 | FALSE |
2 | A | 43 | FALSE |
3 | B | 2 | FALSE |
4 | C | 1 | FALSE |
5 | D | 700 | FALSE |
And my slicer looks like this:
Because there are currently no rows that are true, it isn't an option.
What I want to see is this:
User ID | Task | Count | Between Dates |
And if a True ever shows up, then this:
User ID | Task | Count | Between Dates |
5 | Misc | 700 | TRUE |
But since I have nothing with True currently, I can't set up the slicer correctly.
I have tried a T/F Table and a Switch measure that gave me True, like this:
but it didn't work for me.
This is the switch measure:
Solved! Go to Solution.
Instead of a switch measure, maybe try creating a relationship from your T/F table to your fact table on the true/false column. Then the T/F slicer should automatically filter 'TABLE'.
I tried that earlier and it didn't work. That's because I tried joining the wrong table. This was the solution. Thank you!
Instead of a switch measure, maybe try creating a relationship from your T/F table to your fact table on the true/false column. Then the T/F slicer should automatically filter 'TABLE'.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
18 | |
12 | |
11 | |
10 |