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
Dimitris_Kats
Resolver I
Resolver I

Simplify DAX formula

Hello Dear members.

I have the following dax:

 

CALCULATE(
Credit'[Overdue]
,
KEEPFILTERS(
CALCULATETABLE(
TOPN(
'Top Customers'[Value],'Credit', 'Credit'[Overdue], DESC ), ALLSELECTED() )))

 

This is a real consuming DAX and constanty i am getting an error.
Is there any way to make it simplier and less consuming?

 

Thank you very much!

3 REPLIES 3
Dimitris_Kats
Resolver I
Resolver I

Hello.

 

Thank you very much for your suggested solution and I am so sorry for the late reply.
Unfortunately i am still getting a memory error with this measure 😞
Is there any way to make it even lighter?

 

Thank you again!

Icey
Community Support
Community Support

Hi @Dimitris_Kats ,

 

Have you tried what @SpartaBI mentioned?

 

If it works, please accept it as solution.

 

If not, could you share us the calculation scenario?

Reference: How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

Best Regards,

Icey

SpartaBI
Community Champion
Community Champion

@Dimitris_Kats 
what is  'Top Customers'[Value]? a measure?
anyway try:
Measure =
CALCULATE (
    [Overdue],
    TOPN ( 'Top Customers'[Value], ALLSELECTED ( 'Credit' ), [Overdue], DESC )
)

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