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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Resalat
New Member

Dynamic Table based on Search

Dear all users

I am new to PowerBi and taking an online course. However, my management wants something, and I am unsure I can solve it. Furthermore, I am having trouble finding a way to solve it, either using DAX or Power Query. Here is a breakdown of my current situation with  Scrubbed tables.

 

We are a manufacturing company with a base ERP system; I have taken a dump of information from different modules. My task is to create a graph showing me the item's current stock at any given date.

 

Present Stock: This only shows the Present Stock current date. ( 1/18/2022 )

Item Code

Item Name

Current Stock

ELESTA300001

GI REDUCER SOCKET 3"X2" BSP

50

LBFGRS300200

GI TEE 2" BSP

45

 

Material Receive Now: This showed when the Factory received each item

Item Code

Item Name

MRN QTY

Date

ELESTA300001

GI REDUCER SOCKET 3"X2" BSP

100

1/10/2022

LBFGRS300200

GI TEE 2" BSP

100

1/10/2022

 

Material Issue: This shows that the store department issued this item to the end user reduces the stock effect.

Item Code

Item Name

Issue QTY

Date

ELESTA300001

GI REDUCER SOCKET 3"X2" BSP

60

1/15/2022

LBFGRS300200

GI TEE 2" BSP

50

1/5/2022

 

Based on the above information, it should create an auto table based on the item been searched; here is an example of the result I am trying to achieve.

Resalat_0-1642497221961.png

 

 

 

Item

ELESTA300001

 

Date

MRN

Issue

Present Stock

01-Jan-22

 

 

10

02-Jan-22

 

 

10

03-Jan-22

 

 

10

04-Jan-22

 

 

10

05-Jan-22

 

 

10

06-Jan-22

 

 

10

07-Jan-22

 

 

10

08-Jan-22

 

 

10

09-Jan-22

 

 

10

10-Jan-22

100

 

110

11-Jan-22

 

 

110

12-Jan-22

 

 

110

13-Jan-22

 

 

110

14-Jan-22

 

 

110

15-Jan-22

 

60

50

16-Jan-22

 

 

50

17-Jan-22

 

 

50

18-Jan-22

 

 

50

 

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Resalat ,

 


 

Item

ELESTA300001

 

Date

MRN

Issue

Present Stock

01-Jan-22

 

 

10

02-Jan-22

 

 

10

03-Jan-22

 

 

10

04-Jan-22

 

 

10

05-Jan-22

 

 

10

06-Jan-22

 

 

10

07-Jan-22

 

 

10

08-Jan-22

 

 

10

09-Jan-22

 

 

10

10-Jan-22

100

 

110

11-Jan-22

 

 

110

12-Jan-22

 

 

110

13-Jan-22

 

 

110

14-Jan-22

 

 

110

15-Jan-22

 

60

50

16-Jan-22

 

 

50

17-Jan-22

 

 

50

18-Jan-22

 

 

50

 


Is this the dynamic table you want to create? 

 


 

Item

ELESTA300001

   

Date

MRN

Issue

Present Stock

01-Jan-22

 

 

10

 


Where did this part come from? What format is the original table in?

 

 

Best Regards,

Icey

amitchandak
Super User
Super User

@Resalat , create a date and Item table  and join the two table with date and all three with item

 

Qunatity on hand = Sum(Present_stock[Current Stock]) -  CALCULATE(Sum(Material_receive[MRN ]) ,filter(allselected(Date),Date[Date] <=max(Date[Date]))) +CALCULATE(Sum(Material_Issue[MRN ]) ,filter(allselected(Date),Date[Date] <=max(Date[Date])))

 

 

In this I have assume you want to generate past stock

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.