Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Same Column Variance

Hello,  I have Table "Vendor_Rate" where I want to find out  product price difference against "Current Rate" for all the vendors : Vendor 1 Rate, Vendor 2 Rate , Vendor 3 Rate     Rate            ...
  • jdbuchanan71's avatar
    jdbuchanan71
    7 years ago

    Anonymous 

    You just need to change the [Current Price] measure to hold onto the city filter.

    Current Price = 
    CALCULATE (
        [Vendor Price],
        ALLEXCEPT( Vendor_Rate, Vendor_Rate[City] ),
        Vendor_Rate[Rate] = "Current Rate"
    )