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
gbraga
New Member

Get id from Slicer Name

I have a dimensional table that has names and project ids.

I would like to use a slicer as a filter for a query that only has project_id so I need to get the id selected in the slicer, but the slicer must contain the project name for readability/ease of use.

How can I get the project id from the name on the slicer?

1 REPLY 1
Mahesh0016
Super User
Super User

@gbraga I hope it helps you. Thank You!!
Create Measure using SELECTEDVALUE and plot in the card.
NOTE : when you select Project id from slicer you get that id in card other wise card display blank.

ID = SELECTEDVALUE('Table'[Project ID])

Mahesh0016_0-1690461575393.png

 

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.