Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 49697

Re: currency conversion help please

$
0
0

You can use some measure like below. Check more details in the attached pbix.zip

converted sales =
IF (
    ISFILTERED ( conversionrates[To] ),
    SUM ( financials[sales] ) * MAX ( conversionrates[rate] ),
    SUM ( financials[sales] )
        * MAXX (
            FILTER ( conversionrates, conversionrates[To] = "USD" ),
            conversionrates[rate]
        )
)
//BY DEFAULT, it converts to USD 

Capture.PNG


Viewing all articles
Browse latest Browse all 49697

Trending Articles