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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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