Forum Discussion
chat_peters
3 years agoHelper III
Total for Max Month
I have a power bi table visual that looks like this(link) When I try to calculate the Total Cost for Max available month, the calculation automatically reverts to the last month (YY-MMM) with data ...
- 3 years agoMeasure = CALCULATE(sum(TOTALTRY[Total]),filter('Date','Date'[Month]= MAX('Date'[Month])))
Try this one, you need to do sum first then apply filter on monthnote: if date is from same table
Measure = CALCULATE(sum(TOTALTRY[Total]),filter('TOTALTRY','TOTALTRY'[Month]= MAX('TOTALTRY'[Month])))
Legend_11
3 years agoResolver I
Measure = CALCULATE(sum(TOTALTRY[Total]),filter('Date','Date'[Month]= MAX('Date'[Month])))
Try this one, you need to do sum first then apply filter on month
note: if date is from same table
Measure = CALCULATE(sum(TOTALTRY[Total]),filter('TOTALTRY','TOTALTRY'[Month]= MAX('TOTALTRY'[Month])))
- chat_peters2 years agoHelper III
this is the one I used. I used the filter inside calculate. Thank you so much!