March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
73 | |
57 | |
52 |
User | Count |
---|---|
197 | |
133 | |
107 | |
69 | |
65 |