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

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

Reply
cocoloco79
Helper III
Helper III

How do I use the slicer function to subtract a value?

Hello

 

I need help subtracting a value form SUM of ordered Kg's using the slicer. 

The idea is to adjust the Kg's that get harvested and compare the value with SUM of ordered Kg's.

My datset is linked to SQL and the harvested kg's are not available from the database.

I created another table in Power BI and like to use it to store harvested kg's.

I'm new to Power Bi so I'm a little lost with this task. I hope someone can help me out with this.

 

Thank you in advance! 

Capture.PNG

 

 

 

 

 

 

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

Hi, @cocoloco79 

 

It’s my pleasure to answer for you.

According to your description,I think you can create a custom parameter then create a measure to display the desired result.

Like this:

Measure = SUM(Query1[Ordered KG])-[Parameter Value]

2.png3.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

6 REPLIES 6
v-janeyg-msft
Community Support
Community Support

Hi, @cocoloco79 

 

It’s my pleasure to answer for you.

According to your description,I think you can create a custom parameter then create a measure to display the desired result.

Like this:

Measure = SUM(Query1[Ordered KG])-[Parameter Value]

2.png3.png

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

Thank you very much!!!

amitchandak
Super User
Super User

@cocoloco79 ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Sorry, how do I share the pbix? Cant seem to attach it.

@cocoloco79 , You can upload and one drive or dropbox and share the link.

Please share the expected output too

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

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.