Forum Discussion
MiguelEro
4 years agoFrequent Visitor
Month over month
Good morning, i need some help with this process. i have this information for some counters, create every month and the data in cummulative. i want to know how many items i have every month. Cont...
- Anonymous4 years ago
Hi MiguelEro ,
According to my understanding, you want to calculate the difference between current month and previous month to get the actual total for each month of each Contador ,right?
Please try:
Vs Last Month = VAR _preMonth = CALCULATE ( SUM ( 'Table'[Total] ), PREVIOUSMONTH ( 'Table'[Month] ) ) RETURN IF ( _preMonth = BLANK (), BLANK (), SUM ( 'Table'[Total] ) - _preMonth )Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Applicable88
4 years agoImpactful Individual
MiguelEro if I understand correctly you need cumulative total. Try with that:
Measure =
calculate(sum(Sales[Total]),
Filter(
ALL('Calendar'[Date]),
'Calendar'[Date]<= MAX('Calendar'[Date])
))
if you additionally also want to cumulate over year by year add Max('Calendar[Year]) into it:
Measure =
calculate(sum(Sales[Sales]),
Filter(
ALL('Calendar'[Date]),
'Calendar'[Date]<= MAX('Calendar'[Date])
&&
('Calendar[Year]=)Max('Calendar[Year])
&&
('Calendar[Year]=)Max('Calendar[Year])
))
- MiguelEro4 years agoFrequent Visitor
thanks for your Quick response