Forum Discussion

PaulusD's avatar
PaulusD
Resolver II
7 years ago
Solved

Running SUM using different tables

Hi all,   As a relatively new BI user, i've been able to find numerous solutions already using this forum, so thanks for your continuous contributions :).   New i'm running into a knowledge issue...
  • v-lili6-msft's avatar
    7 years ago

    hi, PaulusD 

    For your data model, if these five tables are all linked with date table,

    If so just drag a year month column from date table and then create a measure 

    measure= Sum of stock level +sum of work in progress +sum of purchase orders expected - sum of planned sales 

    - sum of billed sales

    For conditional ( in current month),  you could add a calculate column to judge if this month is  in current month.

    then use if as a slicer.

    If not your case, please use virtual data to create a simple pbix file and share it with expected output for us.

    Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

     

    Best Regards,

    Lin