Forum Discussion
barakm
2 years agoFrequent Visitor
last date not shown correctly
Hello Dear Team, Got an issue with displaying the last date I have a table with startTime endTime and WeekRange startTime endTime 2024-07-02 2024-07-09 2024-07-09 2024-07-16 2024-...
- 2 years agoMax Range =VAR MaxStartDate =MAXX(ALL('Table'), 'Table'[startTime])VAR MaxEndDate =MAXX(FILTER(ALL('Table'),'Table'[startTime] = MaxStartDate),'Table'[endTime])VAR RangeValue =CALCULATE(VALUES('Table'[week_range]),'Table'[startTime] = MaxStartDate &&'Table'[endTime] = MaxEndDate)RETURNIF(ISBLANK(RangeValue),BLANK(),RangeValue)
I am getting this can you please check, if this works
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@HowtosolveprobemRegards
qqqqqwwwweeerrr
Solution Sage
2 years agoMax Range =
VAR MaxStartDate =
MAXX(ALL('Table'), 'Table'[startTime])
VAR MaxEndDate =
MAXX(
FILTER(
ALL('Table'),
'Table'[startTime] = MaxStartDate
),
'Table'[endTime]
)
VAR RangeValue =
CALCULATE(
VALUES('Table'[week_range]),
'Table'[startTime] = MaxStartDate &&
'Table'[endTime] = MaxEndDate
)
RETURN
IF(
ISBLANK(RangeValue),
BLANK(),
RangeValue
)
I am getting this can you please check, if this works
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem
Regards
- barakm2 years agoFrequent Visitor
Thanks you for the try , I'm getting the following error in the visual when loading your DAX code