Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MansAxelsson
New Member

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)

 

PBI.PNG

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!

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

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. 

vtangjiemsft_0-1710899084231.png

Measure = SUM('Table'[Amount])

(3) Then the result is as follows.

vtangjiemsft_2-1710899131094.pngvtangjiemsft_3-1710899144017.png

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. 

View solution in original post

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

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. 

vtangjiemsft_0-1710899084231.png

Measure = SUM('Table'[Amount])

(3) Then the result is as follows.

vtangjiemsft_2-1710899131094.pngvtangjiemsft_3-1710899144017.png

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. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.