Forum Discussion
Seperate value from running total measure based on max date
- 2 years ago
Nagesh20 , Create a measure using your measure
if(Max(Calendar[Date]) = maxx(filter(allselected(Table), Table[Product] = max(Table[Product]) ), Table[Date]) , [Cumulative (running total measure) ], blank())
or
Measure =
var _max =maxx(filter(allselected(Table), Table[Product] = max(Table[Product]) ), Table[Date])
return
Switch ( true(),
Max(Calendar[Date]) = _max , [Cumulative (running total measure) ],
Max(Calendar[Date]) < _max , 0 ,
blank())
Nagesh20 , Create a measure using your measure
if(Max(Calendar[Date]) = maxx(filter(allselected(Table), Table[Product] = max(Table[Product]) ), Table[Date]) , [Cumulative (running total measure) ], blank())
or
Measure =
var _max =maxx(filter(allselected(Table), Table[Product] = max(Table[Product]) ), Table[Date])
return
Switch ( true(),
Max(Calendar[Date]) = _max , [Cumulative (running total measure) ],
Max(Calendar[Date]) < _max , 0 ,
blank())
- Nagesh202 years ago
Helper I
- Nagesh202 years ago
Helper I
Hi amitchandak
I am not able to get the total when applying the second formula that you suggested. Could you please advice how to get the total for this formula in the table.
Max =Var _max=maxx(filter(allselected(Table1), Table1[Product] = max(Table1[Product]) ), Table1[Date])returnSwitch ( true(),Max(Calender[Date]) = _max ,[Cumulative],Max(Calender[Date]) < _max , 0 ,blank())