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

Adding a fixed value crashes my measure

Hi,

 

I'm trying to add a fixed value to my GP Per Lift measure. The measure below works, but if i add a fixed value of 3.5 it crashes my report.

 

1.jpg

 

This measure has a fixed value:

2.jpg

 

The below measure crashes my report. 

3.jpg

 

Please find the link to my report below any help is much appreciated.

https://www.dropbox.com/s/n2fvokgrte5wvxg/Power%20BI%20Sample.pbix?dl=0

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

Returning constants from measures is generally a very bad idea. If you have 1000 customers 1000 products and 2 years worth of data (so 730 days) and you drag the product, customer and date onto a table with the operational cost measure the table will attemtp to return a row for every combination (so 1000 x 1000 * 730) which would be 730 million rows.

 

So I would suggest doing something like the following where you check if the measure is not blank before adding the constant value to it.

 

GP per Lift (excluding rent & doc) =
VAR _operationCost = 3
VAR _part1 = [Lift Rate] - [Disposal Cost per Lift]
RETURN IF( NOT( ISBLANK( _part1 ) ), _part1 + _operationCost )

View solution in original post

1 REPLY 1
d_gosbell
Super User
Super User

Returning constants from measures is generally a very bad idea. If you have 1000 customers 1000 products and 2 years worth of data (so 730 days) and you drag the product, customer and date onto a table with the operational cost measure the table will attemtp to return a row for every combination (so 1000 x 1000 * 730) which would be 730 million rows.

 

So I would suggest doing something like the following where you check if the measure is not blank before adding the constant value to it.

 

GP per Lift (excluding rent & doc) =
VAR _operationCost = 3
VAR _part1 = [Lift Rate] - [Disposal Cost per Lift]
RETURN IF( NOT( ISBLANK( _part1 ) ), _part1 + _operationCost )

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.

Top Solution Authors