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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Datatouille
Solution Sage
Solution Sage

Get the value of a non-numerical disconnected slicer

Hello everyone,

 

My question is : what is the simplest way to get the value of a non-numerical disconnected slicer in a DAX measure?

 

Disconnected tables are very useful to sensitize or perform data modelling. And it is pretty easy to create a DAX measure which computes the value choosen by the user in this disconnected table (with a MIN, MAX or Average if more than 1 value is selected in the disconnected slicer).

 

But how does it work for non-numerical disconnected tables ?

For example, let's say that I have a disconnected table with 1 column - 3 rows : "Red", "Blue", "Green".

I would like a DAX measure to be able to store the value (supposed to be unique here) defined by the user when using this disconnected table as a slicer in a report.

 

Thanks a lot !

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

Hi @Datatouille

 

Try this

 

NewMeasure = VALUES(SlicerField)

 

 




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

Hi @Datatouille

 

Try this

 

NewMeasure = VALUES(SlicerField)

 

 




Lima - Peru

Hi @Vvelarde

 

Many thanks for your reply. I didn't know this function ! Very useful.

My Final measure is :

 

Measure= If ( Countrows (Disconnected_Table) = 1 ; Values (Slicer_Column) ; "").

 

I used an If statement in case where the user selects more than 1 item in the Slicer_Column (colors here).

 

Thanks again.

Well actually, ' HasOneValue() ' performs the same task but is much better than ' Countrows (Disconnected_Table) = 1 ' in terms of performance

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.