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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
svella
Regular Visitor

Isolate a single field in a column

Hello, Looking for a calc / technique to expose data within a Table BUT only when a user has isolated a selection to 1 item.

 

Example

 

Column A =

 

Dog

Cat

Mouse

 

User clicks on Dog and Cat, Column B = ""  Blank

User clicks on Dog, Column B = "Dog"

 

I have tried the calc below

 

Column_B = If ( DISTINCTCOUNT ( Column_A ) = 1 , Column_A , "" )

 

But I cant seem to return a text string back to a table chart.

 

Any suggestions ????

1 REPLY 1
Rémi
Resolver III
Resolver III

Hello @svella

 

The result of a column change only when you actualize your dataset. So you can't change a column value depending a slicer or anything.

 

Otherwise, you can detect the number of selected items :

NB Selected = COUNTROWS ( FILTERS ( [ColumnA] ) )

Then if you want to display the selection, for a dynamic title for example :

Title = IF ( [NB Selected] = 1 , "Informations for " & CONCATENATEX ( FILTERS ( [ColumnA] ) ) ; "Informations for several animals" )

Use the filters function if you want more options.

 

Rémi

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.