Forum Discussion
How to Calculate MTD Change using two different date values?
- Anonymous2 years ago
Hi Anonymous
First of all, measure can't be put into the slicer.You can create a date table using the following formula, and then create a relationship between the date table and the invoice_date column.
FullDateKey = CALENDAR(DATE(2024,1,1),DATE(2024,12,31))Based on your needs, I have created the following table.
You can calculate total sales using the following Dax:
Measure = SUMX(FILTER('Table','Table'[invoice_date]<>BLANK()&&'Table'[order_date]<>BLANK()),'Table'[sales_price])Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
First of all, measure can't be put into the slicer.You can create a date table using the following formula, and then create a relationship between the date table and the invoice_date column.
FullDateKey = CALENDAR(DATE(2024,1,1),DATE(2024,12,31))
Based on your needs, I have created the following table.
You can calculate total sales using the following Dax:
Measure = SUMX(FILTER('Table','Table'[invoice_date]<>BLANK()&&'Table'[order_date]<>BLANK()),'Table'[sales_price])
Result:
Best Regards,
Jayleny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.