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
dglawson
New Member

What if parameter in a running total (run down chart)

Hi there,

 

I'm having some trouble getting this chart to work.

 

I have a bunch of dates (beginning of month)

 

 

2018-07-01

2018-08-01

2018-09-01

2018-10-01

2018-11-01

2018-12-01

 

I want to be able to make projects based on some numbers

 

a starting value (savings)

 

1st what if parameter (income)

 

2nd what if parameter (expenses)

 

Basically, I want to start with the starting value (savings).

 

And then for each month, add the income (what if parameter), and take away expenses (what if parameter)

 

For those that are more visual, ive included an example of what I'm trying to do below. 

 

Has anyone got any ideas on how to make this work?

 

problem

1 ACCEPTED SOLUTION
v-danhe-msft
Employee
Employee

Hi @dglawson,

Based on my test, you can refer to below steps:

1.I have entered some sample data like the picture below and add three ‘what if’ parameters.

Z1.PNG

 

Parameters:

Monthly Expense = GENERATESERIES(0, 530, 1)

Monthly Income = GENERATESERIES(0, 500, 1)

Starting values = GENERATESERIES(0, 4000, 1)

2.Add an index column in query editor and apply it.

Z2.PNG

3.Create a calculated column and you can see the correct result.

Column = [Parameter Value]+[Index]*([Monthly Income Value]-[Monthly Expense Value])

Z3.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/r12o0bbhnqwktnx/What%20if%20parameter%20in%20a%20running%20total%20%28run%...

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
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

2 REPLIES 2
v-danhe-msft
Employee
Employee

Hi @dglawson,

could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Employee
Employee

Hi @dglawson,

Based on my test, you can refer to below steps:

1.I have entered some sample data like the picture below and add three ‘what if’ parameters.

Z1.PNG

 

Parameters:

Monthly Expense = GENERATESERIES(0, 530, 1)

Monthly Income = GENERATESERIES(0, 500, 1)

Starting values = GENERATESERIES(0, 4000, 1)

2.Add an index column in query editor and apply it.

Z2.PNG

3.Create a calculated column and you can see the correct result.

Column = [Parameter Value]+[Index]*([Monthly Income Value]-[Monthly Expense Value])

Z3.PNG

You can also download the PBIX file to have a view.

https://www.dropbox.com/s/r12o0bbhnqwktnx/What%20if%20parameter%20in%20a%20running%20total%20%28run%...

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.