Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

filter by another columns text

Dear All,   I would like to ask for your help on the below topic.    What I would like to do is to say to power bi to create a measure where on the below table (example) to keep the values of EUR...
  • edhans's avatar
    edhans
    6 years ago

    I think this will work:

     

    Country Profit = 
    SUMX(
        FILTER(
            'Europe Profit',
            var CurrencyCode = 
                IF(
                    MAX('Europe Profit'[Country by Business]) = "Poland",
                    "EUR",
                    "Local"
                )
            RETURN
            'Europe Profit'[Reporting Currency] = CurrencyCode
        ),
        'Europe Profit'[Conv. Rate]
    )