Forum Discussion
Qualifying Date for Date-Range
- 7 years ago
Hi Anonymous
Explaination for the formula as below
qualifying1 = IF ( [selected date] < MAX ( Sheet5[datedeadon] ) //"max" -> get the current row of a column, && [selected date] >= MAX ( Sheet5[dateactiveon] ), 1, 0 )I make a new test as below
in my test, [DeadActiveOn] is date/time type, DateDeadOn and Date (Date table) are in date type.
Could you share a screenshot to let me know your data and what's error of the qualifying measure?
Best Regards
Maggie
Hello v-juanli-msft
Thanks for this answer.
Im looking to get scenario 1 to work.
Its about the same direction i tried yesterday night, but with a few changes...
For now, i dont get it to work.
Following Questions:
- If DateDeadOn, DeadActiveOn and Date (Date table) may have different formats i.e Date with time or without. Does this matter?
- In the formula, its possible to say DateDeadOn.Date -- Should i use Date?
- The 2 above doesnt really matter i think, the qualifying formula wont work this way. Why use Max?
If the object hasnt a specified deadOn date its 12.31.9999, max is getting this date isnt it?
The qualifying measure is always false, cant get it to true
Hi Anonymous
Explaination for the formula as below
qualifying1 =
IF (
[selected date] < MAX ( Sheet5[datedeadon] ) //"max" -> get the current row of a column,
&& [selected date] >= MAX ( Sheet5[dateactiveon] ),
1,
0
)
I make a new test as below
in my test, [DeadActiveOn] is date/time type, DateDeadOn and Date (Date table) are in date type.
Could you share a screenshot to let me know your data and what's error of the qualifying measure?
Best Regards
Maggie