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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.