cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
zzy79553927 Frequent Visitor
Frequent Visitor

What If Parameter Help

微信截图_20170823144533.png

 

We are trying to use the What-If function for the first time here.  We want to give our CFO/CEO the ability to change the budgeted Margin % to see how the bottom line is impacted.

 

But, we would like to be able to fo this for each different province.  This is all test data for roundness... but the use case is very real.  Thus far we have only been able to impact the entire Budget % Margin column, rather than focusing in on one margin adjustment.

 

Does any one have any suggestions on how we can make a work around here?

5 REPLIES 5
Vvelarde Super Contributor
Super Contributor

Re: What If Parameter Help

@zzy79553927

 

Hi, i suggest create one parameter to each Province.

 

After that create a Measure with a Switch Function to evaluate each case.

 

Review this PBIX:

 

https://drive.google.com/file/d/0B95C8CKdTZE3THl4QjBrR3RYdjQ/view?usp=sharing

 

imgWhatIf.png

 

Regards

 

Victor

Lima - Peru




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

Proud to be a Datanaut!




Super User
Super User

Re: What If Parameter Help

Hey,

 

you have to provide three What-if parameter, one for each province.

 

Additionally you have to adjust you calculation, checking if one province is selected (in this case it just means used on rows), using this

IF(HASONEVALUE('yourtable'[Province]),
var valueFromWhatIfParameter = 
  SWITCH('yourtable'[Province]
    ,"NB", get the value from that what-if parameter
    ,"NL", ...
    ,0
  )
return
CALCULATE(something using valueFromWhatIfParameter )
)

Hope this gives you an idea how to tackle your requirement.

 

Regards

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!
zzy79553927 Frequent Visitor
Frequent Visitor

Re: What If Parameter Help

Hi @TomMartens,

 

First of all, thank you for helping me.

 

I tried this

Budget%Margin = IF(HASONEVALUE(CRM_Dim_Projects[Province]),
var valueFromWhatIfParameter = 
  SWITCH(VALUES(CRM_Dim_Projects[Province])
    ,"NB", NB[NB Value]
    ,"NS", 'CM%'[CM% Value]
    ,0
  )
return
CALCULATE(AVERAGE(CRM_Fact_SalesOpportunities[Budget%Margin])+valueFromWhatIfParameter )
)

But it doesn't work. Could you have a look at my codes and tell me what is wrong please?

Super User
Super User

Re: What If Parameter Help

Hey,

 

currently I have no idea, but please have a look at the solution from @Vvelarde it uses a similar approach, maybe you can adapt to his approach.

 

Regards

Hamburg - Germany
If I answer your question, please mark my post as solution, this will also help others.
Proud to be a Datanaut!
v-huizhn-msft Super Contributor
Super Contributor

Re: What If Parameter Help

Hi @zzy79553927,

>>Thus far we have only been able to impact the entire Budget % Margin column, rather than focusing in on one margin adjustment.

Could you please explain this requirement in details? And share your sample table to test if I have any idea?

Best Regards,
Angelia

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 316 members 3,326 guests
Please welcome our newest community members: