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
Anonymous
Not applicable

Subtraction Row wise

Hi Team,

 

DAX - I want the result has below highlighted in green colour, 
Balance = Total sum of (uinque) UID Production - each Cat stock (row wise subtraction)

Slicer (Month) select any month then above concept work with month wise.

 

 

screen.PNG

if I select the slicer "All" the following function should work,this function says when the same UID stocks should sum-up and subtracted with production,
if I select a particular months in the slicer the following function should work above concepts

 

Thanks,

KV's

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

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1608101672276.png

If the result is not correct, the reason may be that our data models are different.

Please share a more detailed data model, including the columns used in the measures.

 

Best Regards,
Liang
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

4 REPLIES 4
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1608101672276.png

If the result is not correct, the reason may be that our data models are different.

Please share a more detailed data model, including the columns used in the measures.

 

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

amitchandak
Super User
Super User

@Anonymous The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak ,

 

I got solution , thanks for your reply.

Anonymous
Not applicable

Hi Team,

if I select the slicer "All" the following function should work *=H10-SUM($J$10:$J$12)* this function says when the same UID stocks should sum-up and subtracted with production

 and if click a specific month then "UID stocks should sum-up and subtracted with production for that particular month" 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.