Forum Discussion

Guillaume_S's avatar
Guillaume_S
Frequent Visitor
2 years ago
Solved

Value for previous month without blank

Hi,

I wrote a measure where I want to retrieve the value of the previous month without taking the group into account. However, everything I test takes the group into account. Does someone have an idea ?

My values :

DateGroupValue
202401A10
202402A10
202403A10
202404B15
202405B15
202406B15
202407B20
202408B20

 

My measure :

Previous Mth = CALCULATE([Value],PREVIOUSMONTH(Calendar[Date]))


My results :

DateGroupValuePrevious Month
202401A10 
202402A1010
202403A1010
202404A 10
202404B15 
202405B1515
202406B1515
202407B2015
202408B2020


What i looking for ..

DateGroupValuePrevious Month
202401A10 
202402A1010
202403A1010
202404B1510
202405B1515
202406B1515
202407B2015
202408B2020


Thanks for your help !

Guillaume