Forum Discussion
previous month
- Anonymous6 years ago
Hello,
I am pretty sure that it only works with a dimension date table, so using this table your expression would be like the following:
Prev Month count = CALCULATE([SKU_Count],dateadd(dim_date[.Calendar_date],-1,MONTH))
- 6 years ago
Anonymous , not sure the name of date in date table, one of the following
CALCULATE([SKU_Count],dateadd(dim_date[Calendar_date],-1,MONTH))
CALCULATE([SKU_Count],dateadd(dim_date[Date],-1,MONTH))
CALCULATE([SKU_Count],DATESMTD(dateadd(dim_date[Date],-1,MONTH)))
Anonymous , not sure the name of date in date table, one of the following
CALCULATE([SKU_Count],dateadd(dim_date[Calendar_date],-1,MONTH))
CALCULATE([SKU_Count],dateadd(dim_date[Date],-1,MONTH))
CALCULATE([SKU_Count],DATESMTD(dateadd(dim_date[Date],-1,MONTH)))
Hi
i dont have date table ..
i have only main table.
- Greg_Deckler6 years agoCommunity Champion
Anonymous - See if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008