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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
matsahiro
Helper II
Helper II

Making Lognorm.inv DAX run faster

Hello, I wrote this DAX calculating the inverse of a logarthmic normal distribution. DAX seems to be running very slow as there are about 10K records to calculate this for. Any tips on making it run faster? Thanks

 

LogNorm.Inv =

Var
    Sigma = sqrt(ln(1+50*power(sum(Table[Table_Column]),-.9)))
Var
    Mu = iferror(LN(sum(Table[Table_Column]))-DIVIDE(Power(Sigma,2),2),"")
Return
    IFERROR(EXP(Mu+Sigma*NORM.S.INV(Parameter)),"")
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Have you looked at the query in DAX Studio?  I would assume it lives entirely in the formula engine, but maybe there are some hints as to which part of the query you can cover with lookup tables.

 

You do error handling for the Mu part but then you ignore that again and brute force the inclusion of Mu on the return step.  You can replace that with a conditional calculation.

 

Please provide sample data in usable format (not as a picture) and show the expected outcome.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Have you looked at the query in DAX Studio?  I would assume it lives entirely in the formula engine, but maybe there are some hints as to which part of the query you can cover with lookup tables.

 

You do error handling for the Mu part but then you ignore that again and brute force the inclusion of Mu on the return step.  You can replace that with a conditional calculation.

 

Please provide sample data in usable format (not as a picture) and show the expected outcome.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Users online (25)