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,
is it possible to reference a filter using a DAX formula?
e.g. IF (Filter = "Selcet All",1,2)
Thanks for your help
Solved! Go to Solution.
Hi @Anonymous
You can do something like this, where you are comparing the total number of items in the column used to the number selected in the filter:
IF ( COUNTROWS ( DISTINCT ( FilterTable[FilterColumn] ) ) = COUNTROWS ( ALL ( FilterTable[FilterColumn] ) ), 1, 2 )
Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.
Cheers
Hi @Anonymous
You can do something like this, where you are comparing the total number of items in the column used to the number selected in the filter:
IF ( COUNTROWS ( DISTINCT ( FilterTable[FilterColumn] ) ) = COUNTROWS ( ALL ( FilterTable[FilterColumn] ) ), 1, 2 )
Please mark the question solved when we get to the solution and consider kudoing if posts are helpful.
Cheers