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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Using percentage slider to show the changes in a column

Hi,

 

Lets say i have the following information:

 

 RevenueCostNet Profit
Jan-201000005000050000
Feb-202000000500001950000
Mar-202000000500001950000
Apr-202000000500001950000
May-202000000500001950000
Jun-202000000500001950000
Jul-202000000500001950000
Aug-202000000500001950000
Sep-202000000500001950000
Oct-203000000500002950000
Nov-203000000500002950000
Dec-203000000500002950000
Jan-21300000010000002000000
Feb-21300000010000002000000
Mar-21300000010000002000000
Apr-21300000010000002000000
May-21400000010000003000000
Jun-21400000010000003000000
Jul-21400000010000003000000
Aug-21400000010000003000000
Sep-21400000010000003000000
Oct-21400000010000003000000
Nov-21400000010000003000000
Dec-21400000010000003000000

 

Now i want to have a slider where i can change the forecast revenue as a percentage, so i can show the impact on the net profit as a line chart?

 

For example, I want to see the net profit if i increase the revenue 5% or decrease 5%?

 

Is there something i can find on power bi?

 

Thanks in advance.  

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

You need to create a what if parameter.

 

Go to the modeling -> New parameter

 

Choose options:

Minimum: -1

Maximium: 1

Increment: 0.05 (to have 5% increase)

 

Then make the following measure:

Net_Value_Forecast = SUM('Table'[Net Profit]) *( 1+'Increase percentage'[Increase percentage Value])

 

check PBIX file attach.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
MFelix
Super User
Super User

Hi @Anonymous ,

 

You need to create a what if parameter.

 

Go to the modeling -> New parameter

 

Choose options:

Minimum: -1

Maximium: 1

Increment: 0.05 (to have 5% increase)

 

Then make the following measure:

Net_Value_Forecast = SUM('Table'[Net Profit]) *( 1+'Increase percentage'[Increase percentage Value])

 

check PBIX file attach.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

Hi, thank you very much for your answer and especially for the file.

 

I think i am half way there. However, in this case the measure is changing according to the percertage but the net profit is remaining costent. I want all the rows to be updated along with the percentage. 

 

For example: How much increase by 5% will affect the measure along with net profit?

 

Thanks

Hi @Anonymous ,

 

The  measure is the value you should use has you new net profit. If you look at the table I have place the second value gives you net profit + the 5% On March you have 1.950.000 * 105% = 2.047.500

 

Or do you just want the increase value?

 

In that case calculate  without the 1+ part of the measure


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Anonymous
Not applicable

thank you! Got the result 😄

amitchandak
Super User
Super User

Refer:https://www.sqlbi.com/articles/applying-a-measure-filter-in-power-bi/

 

Other way is to use whatif parameters

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

Assume percent measure is measure 1 and what slicer has a name slicer1

Filter % =

var _max = maxx(slicer1 ,slicer1[slicer1])

var _min = minx(slicer1 ,slicer1[slicer1])

 

Return

calculate(count(table[A]),filter(Table,[Measure] >=_min && [Measure]<=_max),values(table[ID])

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.