Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48627

Re: How to get Previous Month Year

$
0
0

Thanks for the reply from lbendlin , please allow me to provide another insight: 
Hi  @Ferha_Jafri ,

 

Here are the steps you can follow:

1. Create measure.

Flag = var _maxdate= EOMONTH( TODAY(),-1) var _mindate= EOMONTH( TODAY(),-2) return IF( MAX('Table'[Date]) >_mindate&& MAX('Table'[Date])<=_maxdate,1,0)Sum_Measure = SUMX( ALLSELECTED('Table'),[rand])

2. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_2-1724659535143.png

3. Result:

vyangliumsft_3-1724659535147.png

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly


Viewing all articles
Browse latest Browse all 48627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>