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

Top Solution Authors
Top Kudoed Authors