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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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