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
Analitika
Post Prodigy
Post Prodigy

How optimize measure in order to consume less resources in Power BI

Hello,

 

I would like to ask how to reduce resources by optmizing measure in Power BI. Because I added new measures and visual loading slow.

Here is an example:

Filtered measure_t = 
var a = SUMX (
    FILTER (
        VALUES ( 'N08-Klientai'[N08_PAV] ),
        [20_2_1_DATA PRADELSIMAS] >= 31 && [20_2_1_DATA PRADELSIMAS]<=60
    ),
    CALCULATE ( [18_1_0_BENDRA SKOLA (nuo istorijos pradzios)] )
)
return a 
18_1_0_BENDRA SKOLA (nuo istorijos pradzios) is a measure also.

 

 

2 REPLIES 2
v-binbinyu-msft
Community Support
Community Support

Hi @Analitika ,

Please try below dax formula:

Filtered measure_t =
VAR _measure = [18_1_0_BENDRA SKOLA (nuo istorijos pradzios)]
VAR _tmp =
    FILTER (
        VALUES ( 'N08-Klientai'[N08_PAV] ),
        [20_2_1_DATA PRADELSIMAS] >= 31
            && [20_2_1_DATA PRADELSIMAS] <= 60
    )
VAR a =
    SUMX ( tmp, _measure )
RETURN
    a

For more details, you can read related document: DAX Best Practices | MAQ Software Insights

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Does it make quicker calculation?

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.