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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.