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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
basirve
Helper III
Helper III

DAX query facing performance issue.

Dear Experts,
Below Dax Query facing perfomance issue, Could you please provide Best soulution for below DAX Measure.

Note: _productivity is measure, Its contain sum(column).

 

Intention Of below code is need to get the Min value of productivity at @ReportstoName,_NameID level.

Note: Below code is taking to execute 1350 Ms, Please provide the best solution on this.

 

productivity_MinVal =

MINX(
FILTER(
ALL(
Employee_Lookup[Reports_To_Name],
Employee_Lookup[_nameId]

),
Employee_Lookup[Reports_To_Name] = MAX(Employee_Lookup[Reports_To_Name]) && [_productivity]>0

),
[_productivity]

)

basirve_0-1615370842871.png

 

Thank you in advance,

 

Regards,

Venkat.

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @basirve ,

 

To my knowledge, this expression is very simple now. 

What's the size of your data? If it is large, this calculation time is normal.

 

In addition, you can also try something like below:

productivity_MinVal =
CALCULATE (
    MINX ( VALUES ( Employee_Lookup[CRR] ), [_productivity] ),
    ALL ( Employee_Lookup[CRR] )
)

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
basirve
Helper III
Helper III

How to Optimize below Dax query.

 

RANKX (
ALL ( Denodo_Employee_Lookup_CRC_Personnel[_nameId] ),
CALCULATE (
CALCULATE (
UCCE_Productivity[_AHT_Resi_Duration],
Denodo_Employee_Lookup_CRC_Personnel[Job_Cd] = "DSWQ", Denodo_Employee_Lookup_CRC_Personnel[Status] in {"Active Fulltime","Leave of Absence"}, Denodo_Employee_Lookup_CRC_Personnel[Network_Id] <> BLANK ()
),
ALLEXCEPT (
Denodo_Employee_Lookup_CRC_Personnel,
Denodo_Employee_Lookup_CRC_Personnel[_nameId]
), Denodo_Employee_Lookup_CRC_Personnel[Job_Cd] = "DSWQ", Denodo_Employee_Lookup_CRC_Personnel[Status] in {"Active Fulltime","Leave of Absence"}
),
,
ASC,
DENSE
)

Could you please help me on this.

Icey
Community Support
Community Support

Hi @basirve ,

 

To my knowledge, this expression is very simple now. 

What's the size of your data? If it is large, this calculation time is normal.

 

In addition, you can also try something like below:

productivity_MinVal =
CALCULATE (
    MINX ( VALUES ( Employee_Lookup[CRR] ), [_productivity] ),
    ALL ( Employee_Lookup[CRR] )
)

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear Icey,

 

Its Really helffull, Thank you a lot!.

 

Regards,

Venkat

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.