Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I'm pulling data from only one table for my report. I have 2 date columns - effective date and expired date. I need to use only one slicer in my report so that I can apply filter on both effective date and expired date as below.
policy eff dt <= slicer date
and
expired dt > slicer date
Please let me know if this can be achieved?
Thanks in advance.
Solved! Go to Solution.
Hi @Anonymous ,
1. Create a date table and add the date column in slicer.
date = CALENDARAUTO()
2. Create a measure and make the table visual filtered by the measure.
Measure = VAR _exp = MAX ( Table1[expired date] ) VAR _eff = MAX ( Table1[effective date] ) VAR _sele = SELECTEDVALUE ( 'date'[Date] ) RETURN IF ( _eff <= _sele && _exp > _sele, 1, 0 )
Please check the pbix as attached.
Regards,
Frank
Hi @Anonymous ,
1. Create a date table and add the date column in slicer.
date = CALENDARAUTO()
2. Create a measure and make the table visual filtered by the measure.
Measure = VAR _exp = MAX ( Table1[expired date] ) VAR _eff = MAX ( Table1[effective date] ) VAR _sele = SELECTEDVALUE ( 'date'[Date] ) RETURN IF ( _eff <= _sele && _exp > _sele, 1, 0 )
Please check the pbix as attached.
Regards,
Frank
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
65 | |
63 | |
53 | |
39 | |
26 |
User | Count |
---|---|
85 | |
57 | |
45 | |
44 | |
36 |