Forum Discussion

nirrobi's avatar
nirrobi
Icon for Helper V rankHelper V
9 years ago
Solved

What If Analysis - Data Table - similar to exel function

Hi all, I want to implement in PBI the same function as in excel . I have 2 variables that effect measure and what to see in one table how the change of those 2 variables effect the calculation of ...
  • v-yulgu-msft's avatar
    9 years ago

    Hi nirrobi,

     

    It is not possible to generate such an data table automatically in Power BI desktop.

     

    But we can achieve a similar output via below workaround. It would be better that the dataset imported into Power BI looks like:

     

    Based on this basic table, you should create a calculated table using this formula:

    Sheet2 = CROSSJOIN(SELECTCOLUMNS(Sheet1,"X",Sheet1[X]),SELECTCOLUMNS(Sheet1,"Y",Sheet1[Y]))

    Create a measure that returns multiplication values.

    multiplication = MAX(Sheet2[X])*MAX(Sheet2[Y])

    In report view, insert a Matrix visual to display data.

     

    Best regards,
    Yuliana Gu