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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Prima_
Resolver I
Resolver I

How to retrieve a value from a table by passing a measure value

Hi, 

 

I find 'Most used product' ([Sub_Product Name]) using a measure from the values in Product Table.
I need to find out if the stock is available ([AvailableOrNot]) for this Sub_Prodcut from another table 'Stock'.

 

Here's the scenario:

Product Table has
[Product Name], [Sub_Product Name]
A A1
A A2
A A3
B B1
...

Stock Table has

[Product Name] [Sub_Product Name] [AvailableOrNot]
A A1 Not Available
A A2 Available
A A3
B  B1

...

Let's say, the Most used product is A2 ----> This is displayed in a Card Visual.
I want to show AvailableOrNot in another Card Visual.
How to write a measure to retrieve 'Stock'[AvailableOrNot] field from Stock Table where 'Stock'[Sub_Product Name] = [Most used product]

 

Thank you.

1 ACCEPTED SOLUTION
Prima_
Resolver I
Resolver I

I used 

Prima__0-1680681570751.png

It worked. Will test somemore. Thanks

 

View solution in original post

1 REPLY 1
Prima_
Resolver I
Resolver I

I used 

Prima__0-1680681570751.png

It worked. Will test somemore. Thanks

 

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.