Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
KarineLago
Advocate I
Advocate I

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
Vvelarde
Community Champion
Community Champion

@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

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@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

Thanks @Vvelarde!

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.