Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have a matrix table that I want to filter based on a date slicer on a set of customers. However, I have another field that if its null/blank I would like the filter to not touch regardless of the date on the filter.
For example
ID Val DateField
1 3 2007-01-01
2 2 2005-01-01
3 2 2001-01-01
4 1999-01-01
If I have a DateField slicer and I set it to 2004-12-31 I'd like the following results:
ID Val DateField
1 3 2007-01-01
2 2 2005-01-01
4 1999-01-01
ID1 is selected because the DateField is greater than the selected date
ID2 is selected because the DateField is greater than the selected date
ID4 is selected not because the datefield is greater but because the Val field is blank.
I'm basically requiring an OR statement on the slicer.
Any ideas?
Solved! Go to Solution.
Hi @Rich2852
You could create a date table, then edit relationship with your data table, next add the "date" column to a slicer
Table = CALENDARAUTO()
2. create a measure in your data table, then add this measure to the Visula level filter and set "show data when value equal: 1".
Measure = IF(MAX([DateField])>SELECTEDVALUE('Table'[Date])||MAX([Val])=BLANK(),1,0)
Best Regards
Maggie
Hi @Rich2852
You could create a date table, then edit relationship with your data table, next add the "date" column to a slicer
Table = CALENDARAUTO()
2. create a measure in your data table, then add this measure to the Visula level filter and set "show data when value equal: 1".
Measure = IF(MAX([DateField])>SELECTEDVALUE('Table'[Date])||MAX([Val])=BLANK(),1,0)
Best Regards
Maggie
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 |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 69 | |
| 39 | |
| 35 | |
| 23 |