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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
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. 

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
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. 

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors