{"id":11613,"date":"2022-01-27T15:44:11","date_gmt":"2022-01-27T23:44:11","guid":{"rendered":"https:\/\/threecloud.wpengine.com\/?p=11613"},"modified":"2024-04-17T13:52:55","modified_gmt":"2024-04-17T20:52:55","slug":"what-if-analysis-power-bi","status":"publish","type":"post","link":"https:\/\/3cloudsolutions.com\/resources\/what-if-analysis-power-bi\/","title":{"rendered":"What-If Analysis with Power BI"},"content":{"rendered":"<p><img decoding=\"async\" style=\"width: 785px;\" src=\"https:\/\/cdn2.hubspot.net\/hubfs\/5670923\/Images\/Blog%20\/BI%20and%20Reporting%20\/what-if-analysis-power-bi-image-5.gif\" alt=\"what-if-analysis-power-bi-image-5\" width=\"785\" \/><\/p>\n<p>Also known as Sensitivity Analysis, what-if analysis is a business technique used to determine how an actual or projected measure is affected by changes in the assumptions upon which that measure is calculated. What-if analysis is often used to compare different scenarios and their potential outcomes based on changing conditions.<\/p>\n<p>What-if analysis is applicable to virtually any activity or system in any industry. For example, if you&#8217;re planning on implementing an information system for a specific purpose at your company, you might consider the cost of buying an off-the-shelf product versus developing it in house. However, what if the cost of developer hours goes up between now and then? What if competition heats up between software vendors? These factors could affect your costs and your ultimate decision. Other applications for what-if analysis include profitability analysis in commerce, hazard analysis in finance, promotion analysis in marketing, and effectiveness analysis in production planning.<\/p>\n<p>By conducting a what-if analysis, you can explore various plausible scenarios and make better decisions as a result. Not only can you make better and more informed decisions by changing assumptions and observing or estimating the results, you are also better able to do it faster and with less risks.<\/p>\n<p>The ability to perform a what-if analysis is an important feature of any BI tool and the August release of Power BI introduces this ability. Let\u2019s take a look at an example of how to set up a simple what-if analysis in Power BI Desktop.<\/p>\n<p>We\u2019ll use a data set containing sales by agent over a period of time. Each agent has a commission structure based on percentage of sales goal achieved. For instance, my contract with agent Billy stipulates that his commission will be 12% if he reaches 80% of the sales target, and 16% if 90% of his target is met, respectively. We want to look at various target values to evaluate Billy\u2019s earning potential for a month.<\/p>\n<p>We\u2019ll use a simple excel file as source. The sales tab has the structure below:<\/p>\n<p><img decoding=\"async\" style=\"width: 300px;\" src=\"https:\/\/cdn2.hubspot.net\/hubfs\/5670923\/what-if-analysis-with-power-bi-image%201.jpg\" alt=\"what-if-analysis-with-power-bi-image 1\" width=\"300\" \/><\/p>\n<p>Our agent\/commission table could look like this:<\/p>\n<p><img decoding=\"async\" style=\"width: 484px;\" src=\"https:\/\/cdn2.hubspot.net\/hubfs\/5670923\/what-if-analysis-power-bi-image-2.jpg\" alt=\"what-if-analysis-power-bi-image-2\" width=\"484\" \/><\/p>\n<p>After importing this source into Power BI, we can create a simple dashboard allowing us to filter by sales agent and see the sales performance of each one of our agents by month. You will notice that we do not have an actual sales goal or target yet. We will supply one using the new What If parameter in power BI. Let\u2019s do that next. From the Modeling Menu, select New Parameter like in the capture below. Enter a name, as well as minimum and maximum values for the parameter.<\/p>\n<p><img decoding=\"async\" style=\"width: 233px;\" src=\"https:\/\/cdn2.hubspot.net\/hubfs\/5670923\/what-if-analysis-power-bi-image-3.jpg\" alt=\"what-if-analysis-power-bi-image-3\" width=\"233\" \/><\/p>\n<p>We can now use the new parameter in various DAX expressions. To calculate the sales agent commission, we will have to compare their monthly sales performance against the two thresholds we defined in the data and then multiply their sales by the corresponding commission percentage. The formula will look something like below:<\/p>\n<p><img decoding=\"async\" style=\"width: 460px;\" src=\"https:\/\/cdn2.hubspot.net\/hubfs\/5670923\/what-if-analysis-power-bi-image-4.jpg\" alt=\"what-if-analysis-power-bi-image-4\" width=\"460\" \/><\/p>\n<p>The GoalLevel1 and 2 above are defined as GoalLevel1 = &#8216;Sales Goal'[Sales Goal Value] * MIN(Agents[GoalPercentage1]), where Sales Goal Value is the What If parameter we defined earlier. The simple sales dashboard could like the capture below, showing Randy\u2019s sales performance for the month of July. Note that we are using a bullet chart (by <a href=\"https:\/\/okviz.com\/bullet-chart\/\" rel=\" noopener\">OKViz<\/a>) to visually represent performance against targets. Watch how the Goal Levels and the Commission value change as we modify the value of the Sales Goal. In essence, we are answering the following question: <strong>what if<\/strong> I set the Sales goal to $1,600, how will that affect my commission potential?<\/p>\n<p><img decoding=\"async\" style=\"width: 785px;\" src=\"https:\/\/cdn2.hubspot.net\/hubfs\/5670923\/what-if-analysis-power-bi-image-5.gif\" alt=\"what-if-analysis-power-bi-image-5\" width=\"785\" \/><\/p>\n<p>In conclusion, what-if analysis can be a quick way to evaluate various scenarios based on one or more input parameters and Power BI makes it extremely easy to implement this type of analysis with functionality from the August 2017 release. To see it in action and download a copy of the PBIX file, please visit the What If contest page on the Microsoft Data Stories Gallery <a href=\"https:\/\/community.powerbi.com\/t5\/Data-Stories-Gallery\/Sales-Commission-with-What-If-Goal-Setting\/m-p\/235539#M1041\" rel=\" noopener\">here<\/a>.<\/p>\n<p>To learn more about Power BI, check out our webinar on Advanced Data Modeling. To learn more on how to implement Power BI into your organization <a href=\"https:\/\/3cloudsolutions.com\/get-started\/\">contact us today<\/a>.<\/p>\n<p><em><span style=\"font-size: 11.0pt;\">E<\/span><\/em><em><span style=\"font-size: 11.0pt;\">ditor\u2019s Note: The post was originally published in [May, 2019] and has been updated for freshness, accuracy and comprehensiveness.<\/span><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Also known as Sensitivity Analysis, what-if analysis is a business technique used to determine how&mldr;<\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[260],"tags":[273],"class_list":["post-11613","post","type-post","status-publish","format-standard","hentry","category-data-ai","tag-power-bi","topics-blog"],"acf":[],"_links":{"self":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/11613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/comments?post=11613"}],"version-history":[{"count":0,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/posts\/11613\/revisions"}],"wp:attachment":[{"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/media?parent=11613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/categories?post=11613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3cloudsolutions.com\/wp-json\/wp\/v2\/tags?post=11613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}