Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Variance between rows, without date

I have a list of price per supplier and i need to determine the best supplier based on price, i need to do a division between min price and next min price , to get the % of variance . Can someone ple...
  • v-eachen-msft's avatar
    v-eachen-msft
    6 years ago

    Hi Anonymous ,

     

    Do you mean to find the variance in each product?

    You could refer to the following column:

    Column 2 =
    VAR a =
        CALCULATE (
            MIN ( 'Table'[Total Price] ),
            ALLEXCEPT ( 'Table', 'Table'[Product] )
        )
    RETURN
        'Table'[Total Price] / a - 1

    To prevent misunderstanding, I created another two columns for your reference (Column1 & Column3).

    Here is my test file.