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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alsolok
Helper II
Helper II

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
Anonymous
Not applicable

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
Anonymous
Not applicable

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...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors