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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rigoleto
Helper II
Helper II

Performace issue I am Usinge MAXX to compare a values from a table

Hi,

 

I have wroten a Measure field to calculate some values, "AVERAGE","GOAL" AND "MAX", everythign has being calculated as the request but, I having performace issues, notice in the example that I am using a MAXX function, remember this is a measure field, I am wondering why it went down with the performace? I am reading around 100 records..

 

 

 

SWITCH(
TRUE(),
MAXX('New Line Balance Table 2','New Line Balance Table 2'[NAME])="AVERAGE",AVERAGEc,
MAXX('New Line Balance Table 2','New Line Balance Table 2'[NAME])="GOAL",GOALc,
MAXX('New Line Balance Table 2','New Line Balance Table 2'[NAME])="MAX",MAXc
)

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @Rigoleto,

 

I noticed that you used MAXX in your formula, sometimes MAXX might cause performance issue. I didn't find any related article describing best performance to use MAX and MAXX, here is a blog written about When to Use SUM() vs SUMX() which is similar.

 

In your scenario, please try this:

SWITCH(
TRUE(),
SELECTEDVALUE('New Line Balance Table 2'[NAME])="AVERAGE",AVERAGEc,
SELECTEDVALUE('New Line Balance Table 2'[NAME])="GOAL",GOALc,
SELECTEDVALUE('New Line Balance Table 2'[NAME])="MAX",MAXc
)

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors