Forum Discussion

santu1021's avatar
santu1021
Helper II
6 years ago

Create a new report

I would like to create a new report, I have around 1 billions part numbers. For these part numbers, on daily basis, I would like to have a report which gives stock level as below. 

 

 Warehouse1 StockWarehouse2 Stock
SKU 1No StockNo Stock
SKU 2No StockIn Stock
SKU 3In StockNo Stock
   
*Ignore if stock on both warehouses

7 Replies

  • Nathaniel_C's avatar
    Nathaniel_C
    Community Champion

    Hi santu1021 ,

    If I understand your question, your measure would be. Replace table with your table name, and W1 Stock with your column name.  Dropping these two measures on the table next to the SKU will filter for each SKU #
    Let me know if you have any questions.

    If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
    Nathaniel

    Warehouse1 Stock = 
    var _total =SUM(table[W1 Stock)
    var _calc = IF(_total>0,"In Stock", "No Stock")
    return _calc
    
    Warehouse2 Stock = 
    var _total =SUM(table[W2 Stock)
    var _calc = IF(_total>0,"In Stock", "No Stock")
    return _calc

      

    • santu1021's avatar
      santu1021
      Helper II

      Hi Nathaniel,

       

      Thank You for the reply

      My data is in below template.

      Org Code : are warehouse 1 and warehouse 2

      CPN : are part numbers

      Total On Hand qty : Stock

       

      I'm tried the setups you have mentioned but bit lost with it.

      May I ask to provide more details with steps, screen shots

       
       
       

      • Nathaniel_C's avatar
        Nathaniel_C
        Community Champion

        Hi santu1021 ,
        Just got online again.  Would you  copy and paste what you in that picture directly into this message.  I will build a pbix with it and detail the steps.

        Thanks,

        Nathaniel