Forum Discussion

SUNNY_ISLAND's avatar
SUNNY_ISLAND
Frequent Visitor
4 years ago
Solved

Column total incorrect for converted amounts

I have the following dax formula to convert values from various currencies to SGD. The total column does not add up. Instead of showing $16.5m, it is showing $25.2m. The converted amount on each row...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi SUNNY_ISLAND ,

    Please have a try.

    Based on the measure[Total value in SGD].

    _contract_ = 
    var _b = SUMMARIZE('Date','Date'[Report curr],"aaa",'Data'[Total value in SGD])
    return
    IF(HASONEVALUE('Date'[Report curr]),'Data'[Total value in SGD],SUMX(_b,[aaa]))

    Or you can use Other unique columns replace the column 'date'[Report curr].

     

    If I have misunderstood your meaning, please provide a pbix file without privacy information and more details with your desired output.

     

    Best Regards

    Community Support Team _ Polly

     

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