The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello pbi community
I hope you can help me with this question.
Is there any possibility to take a dax measure into a visual filter? or how can I achieve this?
Thanks in advance
@fabianfilth you cannot directly use a DAX measure in a visual filter.
But you can achieve a similar result by creating a calculated column replicating the DAX measure's logic and then using that column as a visual filter.
By creating a calculated column, you effectively store the DAX measure's results in a new column in your data model, which can then be used as a filter in visuals.
Note:
Calculated columns use storage space and are pre-calculated during data refresh, so you should be cautious when using them, especially with large datasets.
Reference for more info:
https://www.sqlbi.com/articles/deep-dive-into-measure-filters-in-power-bi-desktop/
Please let me know if this works
Thanks