Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Matrix View Column Calculation

Edit: Google Drive Link   Hello,  I have built a view in Excel with three sheets that I am trying to recreate in PowerBI. The first sheet shows two metrics by region and market, and indicates wher...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi  Anonymous ,

    In power bi you can also use the IF function to judge, use the Line and clustered column to see the target value.

    https://docs.microsoft.com/en-us/dax/if-function-dax

    Here are the steps you can follow:

    1. Create measure.

    IF =
    IF(
        DIVIDE( MAX('Table'[Pre]),100)>=MAX('Table'[Target]),"Yes","No")

    Targetmeasure =
    CALCULATE(MAX('Table'[Target]),FILTER(ALL('Table'),'Table'[Row Labels]=MAX('Table'[Row Labels])&&'Table'[Show by Region]=MAX('Table'[Show by Region]))) * 100

    2. Find Line and clustered column in Visual

     

    3. Result:

    If you need pbix, please click here.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly