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
Spotto
Helper IV
Helper IV

Visual With resources exceeded (measures)

hello everyone, I have a panel that I made that has performance problems because it is taking too long to process the information and it is giving an error.

 

I have 3 tables where I made a primary key (CHAVE(CAK+NrJDE) in each and with summarize I created a table (CHAVE(CAK+NrJDE) with all the keys of each table because each table has different keys between them.

 

The gdp_vw_Contratos table has 250 thousand records

 

Spotto_1-1674131283465.png

 
CHAVE(CAK+NrJDE) = DISTINCT(
FILTER(
    UNION(
SUMMARIZECOLUMNS(
    'gdp vw_Contratos'[CHAVE(CAK+NrJDE)],
    'gdp vw_Contratos'[PDDMCT],    
    'gdp vw_Contratos'[NDoc_JDE]
),
SUMMARIZECOLUMNS(
    'CDP - Salesforce'[CHAVE(CAK+NrJDE)],
    'CDP - Salesforce'[CONTRATO],    
    'CDP - Salesforce'[NR DOCUMENTO JDE]    
),
SUMMARIZECOLUMNS(
   'gdp vw_Interface_Month'[CHAVE(CAK+NrJDE)],
    'gdp vw_Interface_Month'[PDDMCT],    
    'gdp vw_Interface_Month'[VOUCHER]
)
    ),
    NOT ISBLANK('gdp vw_Contratos'[CHAVE(CAK+NrJDE)])
)
)
 
---> the panel I made was this:
Spotto_3-1674131489311.png

CONTRATO = PDDMCT (table CHAVE(CAK+VOUCHER)

VOUCHER = table gdp vw_Interface_Month
TIPO = table gdp vw_Interface_Month
REGIONAL = table gdp vw_Interface_Month
GDP = measure
SALESF = measure
VALOR = table gdp vw_Interface_Month
RESPONSAVEIS = table gdp vw_Interface_Month
DT PGTO = table gdp vw_Interface_Month

 

Measure

GDP = IF(
    SELECTEDVALUE('gdp vw_Interface_Month'[CHAVE(CAK+NrJDE)]) = SELECTEDVALUE('gdp vw_Contratos'[CHAVE(CAK+NrJDE)]),
    1,0
)
 
SALESF = IF(
    SELECTEDVALUE('gdp vw_Interface_Month'[CHAVE(CAK+NrJDE)]) = SELECTEDVALUE('CDP - Salesforce'[CHAVE(CAK+NrJDE)]),1,0
)
 
Would you like some help, please, to analyze what you could do differently to improve performance?

If I take the two measures of the panel does it work so would it be possible to improve the measure?

 

 

 

 

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Spotto ,

 

1. Use filtered data, if possible.

vcgaomsft_0-1674439072449.png

Solved: Resources exceeded

Troubleshooting tile errors

 

2.  Try is not equal to the condition, and is generally faster than equal.

GDP = IF(
    SELECTEDVALUE('gdp vw_Interface_Month'[CHAVE(CAK+NrJDE)]) <> SELECTEDVALUE('gdp vw_Contratos'[CHAVE(CAK+NrJDE)]),
    0,1
)

You can use the performance analyzer to check this.

 Use Performance Analyzer to examine report element performance in Power BI Desktop

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @Spotto ,

 

1. Use filtered data, if possible.

vcgaomsft_0-1674439072449.png

Solved: Resources exceeded

Troubleshooting tile errors

 

2.  Try is not equal to the condition, and is generally faster than equal.

GDP = IF(
    SELECTEDVALUE('gdp vw_Interface_Month'[CHAVE(CAK+NrJDE)]) <> SELECTEDVALUE('gdp vw_Contratos'[CHAVE(CAK+NrJDE)]),
    0,1
)

You can use the performance analyzer to check this.

 Use Performance Analyzer to examine report element performance in Power BI Desktop

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

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.