Forum Discussion
insandur
1 year agoHelper II
Measure not working when using in table when other columns added in the table and applied filters
Hi Experts , I have table with multiple columns and using measure to get previous month value for selected month "Prev month Qty" Now this measure doesnot work in the table when i add f...
Uzi2019
1 year agoCommunity Champion
Hi insandur
Try this measure for previous monh calcuation
PrevMonth= Calculate(Sum(sales), DateAdd( 'Calendar'[Date], -1, Month))
Or
Prev Month= Calcuate ( Sum( Sales), ParallelPeriod( 'Calendar'[Date],-1, Month))
I hope I answered your question!
insandur
1 year agoHelper II
Thank you Uzi,
I just get total value, and blank rows when i try above method.
- Uzi20191 year agoCommunity Champion
HI insandur
If you dont have contineous date then you may not get the result.
Try to create calendar table then use the same measure.
Calendar Tabel= Calendar( Min(FC month), Max(FC month))
Make sure your FC month is date format should not be a text data type.I hope I answered your question!