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
alsolok
Helper I
Helper I

show column table

Hello everyone,

 

I want show table column, I use the fonction selectedvalue('tab'[name]).

This fonction is correct?

is there possibity to use switch and selectedvalue ??

Example:

Types =
IF(HASONEFILTER('Choice'[type]),
SWITCH(SELECTEDVALUE('Choice'[type]),
"bob", SELECTEDVALUE('tab'[cp]) & SELECTEDVALUE('tab2'[cp2]) & SELECTEDVALUE('tab3'[cp3]),
"alice", SELECTEDVALUE('tab4'[axe],
"tim", SELECTEDVALUE('tab5'[pos]),
BLANK()
)

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

Hi @alsolok ,

 

You can't filter columns with only one measure. You need to create multiple measures. Please check the attachment.

Screenshot 2021-04-23 161031.pngScreenshot 2021-04-23 161024.pngScreenshot 2021-04-23 161015.png

 

 

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @alsolok ,

 

You can't filter columns with only one measure. You need to create multiple measures. Please check the attachment.

Screenshot 2021-04-23 161031.pngScreenshot 2021-04-23 161024.pngScreenshot 2021-04-23 161015.png

 

 

 

Best Regards,

Stephen Tao

 

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

@alsolok , this should work

 

Types =
IF(HASONEFILTER('Choice'[type]),
SWITCH(SELECTEDVALUE('Choice'[type]),
"bob", SELECTEDVALUE('tab'[cp]) & SELECTEDVALUE('tab2'[cp2]) & SELECTEDVALUE('tab3'[cp3]),
"alice", SELECTEDVALUE('tab4'[axe]),
"tim", SELECTEDVALUE('tab5'[pos]),
BLANK()
), blank())

 

 

Also refer https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slic...

it doesn't work.
I want to make sure that if you select "bob" that it shows me on the map the values of cp1, cp2 and cp3.
the same goes for the others.

This measurement that I am creating I will place it in the location, latitude and longitude fields on an arcgis map

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.