Forum Discussion
insandur
Helper II
1 year agoMeasure 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
Community Champion
1 year agoHi 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
Helper II
1 year agoThank you Uzi,
I just get total value, and blank rows when i try above method.
- Uzi20191 year ago
Community 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!