Forum Discussion
Price Change Filter
So now that I am mulling this over, if the filter had values of "0.5%", "1%", "1.5%" etc....what would happen if any of the changes are not exactly "0.5%", "1%", "1.5%" etc. For instance my fear is if a results was a 1.15% change, would the filter exclude those items since there is not matching filter value? Thoughts?
Hi Anonymous,
Suppose there has been existing a incremental values column ("0.5%", "1%", "1.5%" etc) in your source table, you can create a new calculated table which contains only one column that referring this incremental values column. Please see below steps.
Create calculated table.
Table =
SELECTCOLUMNS (
'Price Change Filter',
"Change Per", 'Price Change Filter'[incremental values]
)
Create a measure which returns desired item filtered by slicer.
Measure1 =
CALCULATE (
MAX ( 'Price Change Filter'[Change] ),
FILTER (
'Price Change Filter',
'Price Change Filter'[Change] >= MAX ( 'Table'[Change Per] )
)
)
In clicer, you should add column 'Table'[Change Per]. In your visual, you should use above measure 'Measure1' rather than the column in source table.
You can refer to this thread for detailed steps, it is not exactly the same as your scenario, but the logic is similar to yours.
Best regards,
Yuliana Gu