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
nmaddock
Helper I
Helper I

Dax Measure crashing report

Hi,

 

Please can someone help, I've created a measure which seems to crash my report:

 

GP Per Lift (13w Avg) = 

VAR 
WeightAllowence = MAX(Agreement[Weight Allowance KG])
RETURN

IF(WeightAllowence = BLANK(), 

 //PPK 
     VAR _part1 =  [Lift Rate] - (
                    (MIN([KG's Per Lift by Actuals], MAX(Agreement[Weight Allowance KG]))) * [Disposal Costs])
             RETURN IF( NOT( ISBLANK( _part1 ) ), _part1 - [Operational Costs] ) ,
//Non PPk
    VAR _part1 =  [Lift Rate] - ([KG's Per Lift by Actuals] * [Disposal Costs])
    RETURN IF( NOT( ISBLANK( _part1 ) ), _part1 - [Operational Costs] )
)

Its basically 2 formulas based on wether I have a weight allowence on my agreement table.

 

My pbx file can be found here https://www.dropbox.com/s/yerlqi9979w5sti/Termination%20complete.pbix?dl=0

 

Many Thanks in advanced

9 REPLIES 9
alicia_pbi
Employee
Employee

@nmaddockdid you ever get this resolved?  I am having similar issues in multiple PBI reports.  I have large datasets (1M+ rows in the QE) and 30+ measures written in the report as opposed to the data set.  I am getting infinity errors on some of my measures (division against blank/zero) so I am trying to use an iferror.  When I add iferror to the measure the visual spins for hours and ends up crashing.  I am trying to avoid writing the measures in the QE as that would increase the queries necessary and add unnecessary complexity.

 

Thanks!

kentyler
Solution Sage
Solution Sage

You have to provide us with a copy of the file with the offending measure removed. Otherwise it crashes every time we try to open it 🙂





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


I have in the link

nope, still crashes





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Even this statement crashes the report:  If(WeightAllowence = Blank(), 10, 20) 

 

I need to check if there i a weight allowence, or there is another measure called 'Is PPk' which I could use as its the same check

 

Thanks Nathan

still crashes ever time i open it

one error message said out of memory, is there some measure doing a lot of recursion ?





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


It is, i removed the offending measure, try clicking one of the industry types to add a filter on. There are loads of records, adding that measure on i get the error your getting now

sorry, it crashes before i can do any clicking





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


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.