Forum Discussion
TREATAS
- 4 years ago
Hi, vijay273162
TREATAS is used to apply the result of a table expression as filters to columns from an unrelated table.
You should make sure that here should be no physical relationship between Table "Orders" and Table "Delivery Dates Table".
Best Regards,
Community Support Team _ Eason
vijay273162 , You should use date table, Try like
CALCULATE(SUM(Order[sales]),
TREATAS (PREVIOUSMONTH( 'Order-datetable'[date] ),
'Order-datetable'[date] )
)
or
CALCULATE(SUM(Order[sales]),
TREATAS (PREVIOUSMONTH( 'Date'[date] ),
'Order-datetable'[date] )
)
- vijay2731624 years ago
Helper III
If I use PREVIOUSMONTH in TREATAS, then..... I don't get any result in my table matrxi below.
So, I need to move the filter from delivery date table to order date table - at the sametime find the previousmonth data.
- v-easonf-msft4 years ago
Community Support
Hi, vijay273162
TREATAS is used to apply the result of a table expression as filters to columns from an unrelated table.
You should make sure that here should be no physical relationship between Table "Orders" and Table "Delivery Dates Table".
Best Regards,
Community Support Team _ Eason