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
Prima_
Helper II
Helper II

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_
Helper II
Helper II

I used 

Prima__0-1680681570751.png

It worked. Will test somemore. Thanks

 

View solution in original post

1 REPLY 1
Prima_
Helper II
Helper II

I used 

Prima__0-1680681570751.png

It worked. Will test somemore. Thanks

 

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.