Forum Discussion
Previous Period within SUMX Issue :(
Hi Community,
i just discover an issue in the calculation of sumx in previous period( previousMonth(), lastYear()..etc).
I explain the context:
i have a sample table containing the columns: date, product, unit price, quantity
And i need to calculate the evolution of sales by month( divide Sales month by Sales month -1 ), so logically i will use the following formulas:
Sales Amount = unit price * Quantity
and to do it correctly i used sumx like:
- Anonymous7 years ago
Hi dkozak ,
I'd like to suggest you use date function to replace time intelligence functions to manually defined calculation date range. It is more accurate and controllable than time intelligence functions.
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng
2 Replies
- MattAllingtonCommunity Champion
If you want to use the time intelligence functions, you must have a calendar table at the day level of granularity. Read my article here https://exceleratorbi.com.au/power-pivot-calendar-tables/
- AnonymousNot applicable
Hi dkozak ,
I'd like to suggest you use date function to replace time intelligence functions to manually defined calculation date range. It is more accurate and controllable than time intelligence functions.
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng