Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
User | Count |
---|---|
82 | |
79 | |
66 | |
49 | |
46 |
User | Count |
---|---|
103 | |
44 | |
39 | |
39 | |
39 |