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
maryhillegass
New Member

Using a field in a visual to filter a different field.

Hello,

So let's say I have the following dataset. 

 

BatchComponent BatchKGs
C123B4562500
B456A7892600
A789RM00011300
A789RM00021300

 

I want to build a report such that when I "lookup" C123 I am can see that 1300kgs of RM0001 and RM0002 were used. 

Does anyone know how to go about building something like this?

 

My initial thought was to build a report that would show the following tables, but I have only been able to do this by entering the component batches into a new batch filter manually. I would like to be able to tell the second table to use the value from the first table component batch field as the filter for the batch field of the second table. Is that possible?

 

Finished Batch 

BatchComponent BatchKGs
C123B4562500

 

Intermediate Batch

BatchComponent BatchKGs
B456A789

2600

 

Raw Materials

BatchComponent BatchKGs
A789RM00011300
A789RM00021300

 

Any help would be appreciated. I tried to look this up, but I did not find anything similar. 

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @maryhillegass ;

You could duplicate three same table in power query.

vyalanwumsft_0-1667355151993.png

Then create relationship about this three table,

vyalanwumsft_1-1667355361445.png

The final show:

vyalanwumsft_2-1667356907780.png

Of course you can also use your three tables:
Finished Batch 、Intermediate Batch、Raw Materials
Then set up the following relationship like I did.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @maryhillegass ;

You could duplicate three same table in power query.

vyalanwumsft_0-1667355151993.png

Then create relationship about this three table,

vyalanwumsft_1-1667355361445.png

The final show:

vyalanwumsft_2-1667356907780.png

Of course you can also use your three tables:
Finished Batch 、Intermediate Batch、Raw Materials
Then set up the following relationship like I did.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yalanwu-msft Is there a way to do this without the duplicate tables?

The tables in my dataset would be fairly large and I wouldn't want to have to store them 3 times if it was not necessary. This would accomplish what I was originally asking.

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.