Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Solved! Go to Solution.
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
)
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??
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |