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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Euro0681
Helper II
Helper II

Adding 1 to Divide()

maybe someone can clear up

I have a measure that simply divides 2 amount

Meausure = Divide( 'Table'[Amount1] - 'Table'[Amount2] , ABS( SUM( 'Table'[Amount2] ) ) ) 

using this measure works and super fast in performance, but.....

Measure 2 = Divide( 'Table'[Amount1] - 'Table'[Amount2] , ABS( SUM( 'Table'[Amount2] ) ) ) + 1

 

breaks visual and says I have exceeeded resources why?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Euro0681 

+1 will force the engine to perform the calculation over all the rows of the visual. You may try

Measure3 =
IF (
NOT ISBLANK ( 'Table' ),
DIVIDE (
SUM ( 'Table'[Amount1] ) - SUM ( 'Table'[Amount2] ),
ABS ( SUM ( 'Table'[Amount2] ) )
) + 1
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Euro0681 

+1 will force the engine to perform the calculation over all the rows of the visual. You may try

Measure3 =
IF (
NOT ISBLANK ( 'Table' ),
DIVIDE (
SUM ( 'Table'[Amount1] ) - SUM ( 'Table'[Amount2] ),
ABS ( SUM ( 'Table'[Amount2] ) )
) + 1
)

Thanks! This works how does this measure work as opposed to the one I used??

Helpful resources

Announcements
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!

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.