Forum Discussion
Column with SUMX and filter by dates and ids
- 3 years ago
Hi crhisbergas ,
Tweak the formula like this:
Sales_12Mth = VAR __Today = TODAY () VAR __12MonthsAgo = EOMONTH ( __Today, -12 ) VAR __Begin = DATE ( YEAR ( __12MonthsAgo ), MONTH ( __12MonthsAgo ), DAY ( __Today ) ) RETURN SUMX ( FILTER ( Sales, Sales[Cod_Cliente] = Clients[ID_Cliente] && Sales[Cod_Prod] = Sales_Clients[ID_Produto] && Sales[Date] >= __Begin && Sales[Date] <= __Today ), Sales[Quantidade] )Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 3 years ago
Hi crhisbergas ,
Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!
Best Regards,
Community Support Team _ kalyj
Hi crhisbergas ,
Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!
Best Regards,
Community Support Team _ kalyj
- crhisbergas3 years agoRegular Visitor
Hi All,
with your support I can finish the job.
thanks a lot!!!