Forum Discussion
vaishalisah
9 years agoRegular Visitor
Can we use measure in visual filter in DirectQuery Mode?
Hello, I want to filter data for the current month. I have created a measure to tell me how many months old the record is. When I try to use that measure in Visual filter, its fields are disabled...
v-sihou-msft
Microsoft Employee
9 years agovaishalisah
9 years agoRegular Visitor
Hello Anonymous, v-sihou-msft
Thank you for your reply.
Following is the measure I created:
Months Old = DATEDIFF(MAX('Values'[ValueDateTime]),TODAY(),MONTH)
It doesn't allow me to filter by the measure, unless I add its base Column "ValueDateTime" in the visualization.
And, I cannot apply page level filter at all using measure.
Is adding calculated column the way out?
Regards,
Vaishali