Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
agangas
Frequent Visitor

Memory Error with simple SUM measures

Hello,

Last week an user had an error on a report that only compares real turnover with budget.  My model has two different currencies, one in local currency and one in USD.  Both fact tables, sales and budget has two columns for each currency, so all I needed to do was create the measures as SUM(Sales LC) and SUM(Sales USD). Then, the user can choose wich currency need to see. For this I made a measure with a SWITCH statement

The problem is that the measure in USD takes until 3x times that the LC.  But it is just the column next to the other one!
I thought the problem was the SWICTH, but then I performed some tests in Dax Studio, only with the SUM measures and the behaviour is as I say, one SUM is much slower than the other
I also checked the datatypes and both are decimal

Regards

1 REPLY 1
joaoribeiro
Impactful Individual
Impactful Individual

Hi @agangas , could you provide some sample of the data, or screenshots of the measures, columns, or Dax Studio outputs?


If you need any additional help please @ me in your reply.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.