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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

Empty card, if there is no selection.

Hello community, I'm trying one thing and I don't know where I'm making the mistake, for example, I have an array with three columns "name", "phone", "photo"

and on the other hand a card with the name and another multiple card with the photos.

when I select a record from the table it gives me the name and photo.

The problem is that I need that if there is none selected do not show me anything. he tried the

It works IF and HASONEFILTER but does not let me build the new measure with the columns I need, algien can tell me how to do it?
I put together photo in case I do not explain myself well.

fist_0-1656414838750.png

Advance Thanks

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @Syndicate_Admin ,

Here are the steps you can follow:

1. Create measure.

 

Measure_Nombre =
IF(
HASONEFILTER('Table'[Nombre]),MAX('Table'[Nombre]),BLANK())
Measure_Foto =
IF(
HASONEFILTER('Table'[Nombre]),MAX('Table'[Foto]),BLANK())

 

2. Result:

When not selected:

vyangliumsft_0-1656660357148.png

Select a row:

vyangliumsft_1-1656660357149.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @Syndicate_Admin ,

Here are the steps you can follow:

1. Create measure.

 

Measure_Nombre =
IF(
HASONEFILTER('Table'[Nombre]),MAX('Table'[Nombre]),BLANK())
Measure_Foto =
IF(
HASONEFILTER('Table'[Nombre]),MAX('Table'[Foto]),BLANK())

 

2. Result:

When not selected:

vyangliumsft_0-1656660357148.png

Select a row:

vyangliumsft_1-1656660357149.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@Syndicate_Admin , you can use isfiltered

 

refer video from guyinacube - https://www.youtube.com/watch?v=sXn-QZqLD-8

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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