Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi Everyone,
Can someone please tell me if this is possible with any measure? I have these two fields Payment Period Start Date & Payment Period End Date, would like to know if I can have one slicer for these so I can give the users the Between or Date range option?
Thank you!!
Solved! Go to Solution.
@sraj , you can connect both of them with a date table. One will active and one inactive. You can join them using use relation.
see how to use userelation : https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Hi @sraj ,
How about this?
1. Create a seperate Dates table.
Dates = CALENDAR(DATE(2020,1,1),DATE(2020,4,30))
2. Create a measure.
Measure =
VAR MaxDate =
MAX ( Dates[Date] )
VAR MinDate =
MIN ( Dates[Date] )
RETURN
IF (
MAX ( 'Table'[Payment Period Start Date] ) >= MinDate
&& MAX ( 'Table'[Payment Period End Date] ) <= MaxDate,
1
)
3. Put the Measure into "Filters on this visual" of the visuals needed and set as 1.
4. Test.
BTW, .pbix file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sraj ,
How about this?
1. Create a seperate Dates table.
Dates = CALENDAR(DATE(2020,1,1),DATE(2020,4,30))
2. Create a measure.
Measure =
VAR MaxDate =
MAX ( Dates[Date] )
VAR MinDate =
MIN ( Dates[Date] )
RETURN
IF (
MAX ( 'Table'[Payment Period Start Date] ) >= MinDate
&& MAX ( 'Table'[Payment Period End Date] ) <= MaxDate,
1
)
3. Put the Measure into "Filters on this visual" of the visuals needed and set as 1.
4. Test.
BTW, .pbix file attached.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try with the UNION function.
Table = UNION( DISTINCT(Table[StartDateColumn]), DISTINCT(Table[EndDateColumn]) )
@sraj , you can connect both of them with a date table. One will active and one inactive. You can join them using use relation.
see how to use userelation : https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
78 | |
52 | |
38 | |
35 |
User | Count |
---|---|
93 | |
73 | |
55 | |
52 | |
46 |