cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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

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

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

Thank you very much!!!

Super User IV
Super User IV

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors