Forum Discussion
Help with Date Filter and Status
- 6 years ago
Hi Anonymous ,
Try this:
IsAfterSelectDate = VAR SelectDate = SELECTEDVALUE ( 'Calendar'[Date] ) VAR CurrentClosedDate = MAX ( 'Table'[Date Closed] ) VAR CurrentIssuedDate = MAX ( 'Table'[Issued Date] ) RETURN IF ( ISBLANK ( CurrentClosedDate ) && SelectDate >= CurrentIssuedDate, 1, IF ( CurrentClosedDate > SelectDate && SelectDate >= CurrentIssuedDate, 1, 0 ) )Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks Icey. I got the number I was looking for, but when I created a relationship between the new CALENDAR table and my data table, it did not work. I need to be able to have a table of data results that users can export for reporting. Should the reltionship be on the ISSUED DATE or the CLOSED DATE?
Hi Anonymous ,
The new table "Calendar" which is a slicer table need to be independent of other tables. If it is not independent of other tables, it will be affected by them when selected. The effect is called interaction.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.