cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KarineLago Frequent Visitor
Frequent Visitor

Use slicer as DAX argument

Hi guys!

 

Is there a way to use an auxiliar table (as slicer) with values to search in the DAX below, instead of writing the string to search?

Eg: the string "Beer" would be modified by the value selected in the slicer.

 

Coluna = IF (
ISBLANK ( SEARCH ( "Beer"; 'Speech Lines'[text]; 1; BLANK () ) );
"Not Found";
"Found"
)

 

Thanks in advance!

From Brazil? Go to IntelExcel YT channel https://www.youtube.com/user/Intelxcel to learn Power BI.
1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Use slicer as DAX argument

@KarineLago

 

 

Hi, In a calculated Column is not possible.

 

Is possible in a measure. 

 

Coluna = IF (
ISBLANK ( SEARCH ( Values(Auxiliar[SlicerValue]); Values('Speech Lines'[text]); 1; BLANK () ) );
"Not Found";
"Found"
)




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




2 REPLIES 2
Super User
Super User

Re: Use slicer as DAX argument

@KarineLago

 

 

Hi, In a calculated Column is not possible.

 

Is possible in a measure. 

 

Coluna = IF (
ISBLANK ( SEARCH ( Values(Auxiliar[SlicerValue]); Values('Speech Lines'[text]); 1; BLANK () ) );
"Not Found";
"Found"
)




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




Highlighted
KarineLago Frequent Visitor
Frequent Visitor

Re: Use slicer as DAX argument

Thanks @Vvelarde!

From Brazil? Go to IntelExcel YT channel https://www.youtube.com/user/Intelxcel to learn Power BI.