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
ewakol
Helper I
Helper I

Calculation of monthly inventory level based on transactions

Hello,

 

What i need: stock level on last day month, based on inventory issue transactions, by product and warehouse

What i have:  a list of transactions from day zero like you can see below

ewakol_1-1712835509416.png

 

Need the most efficient way because the amount of data is extremely huge.

Houw could i extract it? I would appreciate for help.

5 REPLIES 5
v-binbinyu-msft
Community Support
Community Support

Hi @ewakol ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

 

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-binbinyu-msft very thank you for reply and you time.


In SQL database table i have list of item warehouse transactions/movements, example for one item:

ewakol_0-1713183935887.png

 

what i need is stock level on last month day (sometimes there is no movements in month), hope its more clear now

Hi @ewakol ,

Please try to use visual calculate.

vbinbinyumsft_0-1713249885232.png

Please refer the attached .pbix file.

 

For more details, you could read related document:  Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

You're briliant! Running sum its what i need! Your file was very helpfull, now i know how to add this value to table! Its great, but is it possible to add it to the chart also?

ewakol_5-1713297263907.png

 

i tried to do it in two ways:

1. Using RUNNINGSUM function (DAX) - DAX | Microsoft Learn

but its look like my PBI dont know this function (i have Version: 2.128.952.0 64-bit (April 2024)):

ewakol_1-1713296191841.png

 

2. Using Using visual calculations in Power BI Desktop - Power BI | Microsoft Learn

but... its impossible to use it with chart

ewakol_3-1713296404400.png

 

Could You help me with that?

 

edit: when i try to add running sum to my table i see

ewakol_0-1713297947577.png

😞

Hi @ewakol ,

1. Visual calculation is a preview feature, please confrim you have select the option in Power BI Desktop.

vbinbinyumsft_0-1713941377496.png

 

2. This function can be used in visual calculations only.

 

3. You need select the visual in the report firstly, then click the New calculation to create calculations.

  

  • Not all visual types are supported. Use the visual calculations edit mode to change visual type. Also, custom visuals haven't been tested with visual calculations or hidden fields.
  • The following visual types and visual properties have been tested and found not to work with visual calculations or hidden fields:

          

         vbinbinyumsft_1-1713941783997.png

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.