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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.