Forum Discussion

MansAxelsson's avatar
MansAxelsson
New Member
2 years ago
Solved

Calculating values in a Bar Chart / Net-values and subtraction between filters

Hi team.

I hope I can explain this easily.

I have values like this table and graph: (Example numbers, mine is much more complex)

 

How can i add a "Net" column that subtracts the outflows from the inflows? I usually work in excel so is not very advanced in the Power BI calculus/measure/DAX.

I tried adding a new column but cant really work around it. I also want to be able to filter and stuff. (Say only get the same graph with Inflow/Outflow for Store 1) I also work with dates and years in my file.

Thanks!

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi MansAxelsson ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a measure. 

    Measure = SUM('Table'[Amount])

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi MansAxelsson ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a measure. 

    Measure = SUM('Table'[Amount])

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.