Forum Discussion
Showing Values Less than Date chosen
Hi Anonymous
You should be able to just create a date slicer visual, drag the date field onto it, and then change it to a date type of "before". This will allow the end user to choose the end date - all dates before it will be included.
Hope this helps,
Scott
Attached screenshot.
- Anonymous7 years agoNot applicable
Hi Spowell,
In this example when I use the before slicer for what happened befored the 19-01-19, it will include the 15-05-19 and I want to exclude it because it was cancelled on the 18-01-19.
- Anonymous7 years agoNot applicable
Ah, ok, I don't think I understood. Just to clarify, what you want is for items to show up if their created date is before the selected date on the report AND it hasn't been cancelled before the selected date.
Can you confirm if I have that correctly?
Thanks,
Scott
- Anonymous7 years agoNot applicable
Hi,
Yes you are correct, I used the logic in this forum question
and I came up with three measures which kind of worked, but I will like this measures to be calculated column so that I can use it as a slicer(or is there a way i can convert a measure to a slicer)
1. Measure 15 = VAR selectedDate = IF (HASONEVALUE('PBI PowerBiDataSet'[cancdate]),MIN('PBI PowerBiDataSet'[cancdate])) RETURN IF( MAX('conformed DimDate'[CalendarDate]) > selectedDate,"FALSE","TRUE")2. Measure 16 = VAR selectedDate = IF (HASONEVALUE('PBI PowerBiDataSet'[Opportunity Close Date]),MIN('PBI PowerBiDataSet'[Opportunity Close Date])) RETURN IF( MAX('conformed DimDate'[CalendarDate]) < selectedDate,"FALSE","TRUE")
3.Measure 17 = IF([Measure 15] && [Measure 16] = "TRUE" ,"PICK","IGNORE")Column Context
PBI PowerBiDataSet'[cancdate] this column holds the cancelled date if any or it will be like 9999-01-01
conformed DimDate'[CalendarDate] this is the column on the date
PBI PowerBiDataSet'[Opportunity Close Date]