what if
7 TopicsI’m trying to calculate a specific type of what-if scenario
What is the project? I’m developing a solution to show management our overall risk posture based on data coming in from audits. Each finding has a score associated with it (1=Low 2=Medium, 3=High, 4=Critical, but the score number can be decimal values in between these). Also, these findings have a status, so once they are actually remediated in the wild, they don’t show up on a report. I’ve created reports that visually show our average risk score categorized out in several different ways (what type of asset, which overall risk category, etc.). One of the other tables has projects, with a one-to-many relationship to the findings (so we can associate multiple findings to a project, which would identify what findings would be remediated if we ran with a proposed project). This is related through an intermediary table FindingsToProjects. We want to show what happens to our overall risk scores when a particular project is run. So for example, if we run project XYZ (which would remediate finding B and finding C), how would our risk score look then? So in the FindingsToProjects table we basically have this: ProjectName FindingName Project XYZ Finding B Project XYZ Finding C Project LMN Finding A What is the problem I’m having? I thought I had this all figured out, because when I deselect a project in the slicer on the report, the score changes, etc. But what I realized is that it’s now just showing the average risk score of a filtered down set of risks. So for example, if this is my data (fictitious, but showing what I’m trying to do): FindingName RiskScore FindingStatus FindingClosedDate Finding A 2.67 Closed 5/6/2024 Finding B 2.33 Open Finding C 4.00 Open Finding D 1.33 Open Finding E 3.33 Open In this case, the measure I created named AveRisk: AveRisk = AVERAGE([RiskScore]) Would have an overall value of 2.73 (for example, in a Card visual, have this meause displaying Average). Once I filter out the “Closed” in a visual, then the average would be 2.75. That works fine. It’s when I use the slicer to deselect a project that the problem comes up. If finding B and C are associated to the project “Project XYZ”, right now when I deselect that project in the slider it shows a new risk score of 2.33 (which is show the average of finding D and E, since B and C are filtered out and finding A is closed). What I *WANT* it to display is a score of 1.17 (in other words, Average of: Finding B (with a score of 0 since it would be remediated with that project XYZ), finding C (with a score of 0), finding C (1.33), and finding D (3.33)). I think I need to do this using some DAX / meaasures I'm just not thinking of yet, but not sure the best way to do it. (Also, I have full ability to modify the source tables if needed, like adding new columns or whatever). Please help!! And thanks in advance!Solved519Views0likes1CommentHELP: problem with What if parameters
Hi everyone! I'm trying to use a What if parameter for a stacked bar chart but I'm not able to do it. On Excel this was the result: It was made with a row for each hour, each hour has 3 values: delivery time, charge time, rest time (transparent color) All the row where mad to have always 60 (minute) as sum In Power BI I've made all the dax formula and I have for each hour the 3 number I need: delivery time, charge time, rest time. My problem is that all this numer came from a DAX formula and not from a table (Query) because they are directly made having some calculation starting from a What if parameter. I'm able to have a stacked bar chart for 1 hour, but when i try to insert another hour (and I expect to have two different rows (made each one with the three values)) I have each time only one row. This problem I think is why I cant get a Y axes data table, like all the hours subdivisions. I already tryed to make a table with all the hours but i cant connect with all the DAX formula, as saying: all this three DAX formula are relatet to hour 8pm, all these three are for 9pm, ..... In this case I shoul be able to have how many rows as all the hours (each one stacked with the three numvbers). Please really need help cause I'm getting really crazy! Thank you so much475Views0likes1CommentWhat-if parameters
At the retail company i work, the sales men are giving the customers discounts. At the end of the year, the sum of sales after discount =100M and the total dicounts amount=45M. i want to make a what if parameter to the discounts in which i make it dynamic to show that : if we decreased the discount amount by 10% the sales would have increased by so and so .. how can I achieve that ?1.2KViews0likes2CommentsWhat If analysis option is greyed out in Power BI Desktop
Is there conditions to when the What If parameter is enabled vs disabled in Power BI? I've attempted to use this using DirectQuery, SSAS Live connection and Import. There does not seem be a dependency on the data source. The box is at first active prior to adding a data source. Once I have connected to any source of data. The What If parameter becomes greyed out in Power BI Desktop (Oct 2017) optimized for Report Server. After that, I cannot seem to get it to become active again. I've been following blogs on how to create What If parameters. I cannot figure out why this option is greyed out. Thanks for your help!Solved16KViews0likes7CommentsReturn a list of items filtered by a What-If parameter
Hello, I have a dataset that has our products in column A and their corresponding gross revenue on column B. I've created a parameter called "Revenue Threshold". I use this parameter to create measures that tell me: how many products are bellow the threshold, how much revenue that represents and how many products would be left in our portfolio after the removal of those below the threshold. Please see below a mockup of the data: Product Revenue P1 10 P2 20 P3 30 P4 40 P5 50 P6 60 P7 70 P8 80 P9 90 P10 100 Measures: Products Left = COUNTROWS(Table1) - CALCULATE(COUNTROWS(Table1), FILTER(Table1, Table1[Revenue] < 'Revenue Threshold'[Revenue Threshold Value])) Revenue Lost = CALCULATE(SUM(Table1[Revenue]), FILTER(Table1, Table1[Revenue] < 'Revenue Threshold'[Revenue Threshold Value])) And below you can see what is the table I want to display after selecting "50" on the Revenue Threshold slicer: Product Revenue P5 50 P6 60 P7 70 P8 80 P9 90 P10 100 I'm trying to generate a table or column that shows me all the products which have revenues below the threshold. I've tried to generate a calculated table, but I'm aware that what-if parameters and calculated tables do not work togheter. Is there a way to acomplish this? Right now there are no relationships between the Parameter and Table1. Should there be one? I've read something about using the measure to filter a visual directly, but I couldn't make that happen. Best Regards, Pedro.Solved718Views0likes2CommentsCreating groups based on scenario value outcomes
Hi there, I hope you can help!! As an output, I need a table which counts the number of hours of an activity, against the size of the activity (grouped) e.g. 0-9 30.00 10-19 2.00 As a benchmark for scenario planning I have done this by creating bins, and am using a measure to sum up as appropriate. However, I need to create scenarios. There are two scenarios within the same output: (1) Scenario value increases or decreases the number of total hours but the size remains the same - this I have managed using the same bins as in the benchmark. The actual duration calc is based on a total number of attendees/size of the group = no. of events to run * duration. This is the scenario where we expect multiple of the same event to run. (2) Where there is only one event running, the scenario value applies to the number of attendees instead - the duration will not fluctuate I need to then combine these outputs into the one table as above, so we can see the change in hours (resultant from scen1), and the change in distribution across the size bands (resultant from scen2(. We don't need a distinction between scen 1 and 2 in the final table. The problem is that the outputs from scenario (2) are still based on the original event size and not on the scenario size output, and I don't know how to group them so it recognises the new value rather than the original. Hope that makes sense - appreciate any helps as this is driving me mad!734Views0likes1CommentWhat's up with the Community Forum performance?
So, things like refreshing, and posting are hanging really bad lately. I found it odd that I was seeing a lot of identical, sequential posts from the same user, and then it happened to me. This makes me look like more of nimrod idiot than I am. Oh, and as I write this post, big red "Sorry, the action you are requesting isn't available..." on top of the browser window. I'm typing! Really? Ok, so should I stop using Edge? Are we about to yank the ripcord on Edge like 2014 Windows Phone? C'mon MS, you're better than this.4.5KViews0likes4Comments