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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Newbie_SQLPower
New Member

How to apply this dynamic search concept using Power BI desktop?

I want to apply this search concept using Power BI desktop:

Search : Inventory ID (Column C) + LOT Serial Nbr (Column D)

1st Search : should be an Issue Transaction Type (Column A) + Inventory ID (Column C) + Lot Nbr (Column D) : Each result should be searched in 2nd Search. We need to use the result in (Column G and H) for the next search. 2nd Search : for each result in the 1st Search, we should look for Receipt Transaction type (Column A) with the production Nbr found in the 1st Search (Column G) and the inventory ID of (Column H) into the (Column C) Loop of 1st Search : for each result in the 2nd Search, we should be an Issue Transaction Type (Column A) + Inventory ID (Column C) + Lot Nbr (Column D) : Each result should be searched in 2nd Search. We need to use the result in (Column G and H) for the next search. Loop of 2nd Search : for each result in the loop 1st Search, we should look for Receipt Transaction type (Column A) with the production Nbr found in the 1st Search (Column G) and the inventory ID of (Column H) into the (Column C)

Here the link of the data source (excel sheet):

 https://docs.google.com/spreadsheets/d/1bbFBW5DCCVM6ej_b_A6BqrXf4AATsBDU/edit#gid=1594329084

Here the output as an image: 

Capture11.PNG

 Could you please help me to do this! Thanks in advance for doing that!

 
2 REPLIES 2
Anonymous
Not applicable

Hi @Newbie_SQLPower ,

 

In addition to lbendlin's reply, Power BI doesn't support us to loop by DAX. I suggest you to try M code in Power Query to get looping calculation.

For reference:

List.Generate() and Looping in PowerQuery

Power Query Loop Calculation

Easy Looping in Power BI/Power Query

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Power BI is the wrong tool for that. It has no concept of loops.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.