Forum Discussion

shannondean84's avatar
shannondean84
New Member
3 years ago
Solved

Unleashed - Sales Over Time

Hello all.  I've got Power BI setup to pull data from Unleashed, our inventory management and sales software.  I've got almost everything working and reporting the way I need it to but the last b...
  • amitchandak's avatar
    3 years ago

    shannondean84 , You need measure

     

    [Intial Inventory] + CALCULATE(SUM(Table[Ordered]),filter(date,date[date] <=maxx(date,date[date]))) - CALCULATE(SUM(Table[Sold]),filter(date,date[date] <=maxx(date,date[date])))

    Inventory / OnHand
    CALCULATE(firstnonblankvalue('Date'[Month]),sum(Table[Intial Inventory]),all('Date')) + CALCULATE(SUM(Table[Ordered]),filter(date,date[date] <=maxx(date,date[date]))) - CALCULATE(SUM(Table[Sold]),filter(date,date[date] <=maxx(date,date[date])))


    Opening

    Inventory / OnHand
    [Intial Inventory] + CALCULATE(SUM(Table[Ordered]),filter(date,date[date] <=Min(date[date]))) -
    CALCULATE(SUM(Table[Sold]),filter(date,date[date] <=Min(date[date])))



    Inventory / OnHand
    CALCULATE(firstnonblankvalue('Date'[Month]),sum(Table[Intial Inventory]),all('Date')) +
    CALCULATE(SUM(Table[Ordered]),filter(date,date[date] <min,date[date]))) -
    CALCULATE(SUM(Table[Sold]),filter(date,date[date] <min,date[date])))

    Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw