Forum Discussion

kristel_tulio's avatar
kristel_tulio
Icon for Helper III rankHelper III
2 years ago

Change the input variables based on different project in a table

Hi,

 

I would like to ask if it is possible to change the values in each column of a table depending on the input values selected. 

I have here Profit and Loss for each project. I want to put the expected profit and Percentage complete using the What if parameter but I don't want it to be static. Each project have different completion rate and profit. I have sample as well in excel of what i mean.

 

 

 

 

 

4 Replies

  • kristel_tulio , You can create a measure using the value of the what if parameter

     

    First create a whatif paramater

    Go to the Modeling tab in Power BI Desktop.
    Click on "New Parameter".
    Name your parameter (e.g., "Completion Rate").
    Set the Data Type to Decimal Number.
    Set the Minimum, Maximum, and Increment values according to your needs (e.g., Min: 0, Max: 1, Increment: 0.01 for percentage).
    Click OK. This will create a new table with the parameter values and a slicer for the parameter.

     

    Then create a measure for 

    Expected Profit =
    SUMX(
    Projects,
    Projects[Profit] * 'Completion Rate'[Completion Rate Value]
    )

     

    And

     

    Percentage Complete =
    SUMX(
    Projects,
    Projects[Completion] * 'Completion Rate'[Completion Rate Value]
    )

    • kristel_tulio's avatar
      kristel_tulio
      Icon for Helper III rankHelper III

      Hi bhanu_gautam 

      Thank you for responding. I already created the what if parameter but what I want to achieve is each project will have different expected profit and percentage based on selection. I want to copy the data on my excel in power bi.

      • bhanu_gautam's avatar
        bhanu_gautam
        Icon for Super User rankSuper User

        Try using measure which I have mentioned they are created using dynamic value which will be selected on the what if paramter "Completion Rate'[Completion Rate Value]"