Forum Discussion
bhavnachalise15
2 years agoFrequent Visitor
Rolling Total Measure Showing Correct Values in Table and Line Graph But not on Card and Tooltip
I have created a rolling total measure -
RT =
VAR _EndDate = MAX(dimCalendar[Period])
VAR Amt =
CALCULATE(
Count Measure,
FILTER(
ALLSELECTED(dimCalendar),
dimCalendar[Period] <= _EndDate
))
Var Final = IF(ISBLANK(Count Measure),BLANK(),Amt)
RETURN
Final
This measure works perfectly fine for Graphs and Tables but not in a Card and similarly doesn't work for Tooltip
2 Replies
- Sahir_Maharaj
Super User
Hello bhavnachalise15,
Can you please try modifying the measure for tooltip compatibility:
RT = VAR _EndDate = IF( HASONEVALUE(dimCalendar[Period]), MAX(dimCalendar[Period]), LASTDATE(dimCalendar[Period]) ) VAR Amt = CALCULATE( Count Measure, FILTER( ALLSELECTED(dimCalendar), dimCalendar[Period] <= _EndDate ) ) Var Final = IF(ISBLANK(Count Measure), BLANK(), Amt) RETURN FinalShould you require any further assistance, please do not hesitate to reach out to me.
- bhavnachalise15Frequent Visitor
No This isn't working for rolling total.