Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
How can I calculate this approach at PBI, I want to calcualte a Yield. The result schould appear at a KPI.
Thanks in Advance
=(SUM(F3:F5)-SUM(G3:G5))/SUM(F3:F5)
@rajulshah
any help is appreciated, the single Sums are right but a soon as I divided the numbers I receive a NaN.
Please use the following DAX measures:
Measure =
DIVIDE ( COUNT [ CoulmnA ] - COUNT [ ColumnB ], COUNT [ CoulmnA ], 0 )
Please let me know if this didn't help.
No sorry @rajulshah , its not working. the expected result should be..
without Filter = 94%
Filter Month = 2 = 97%
Filter Month = 3 = 93%
@Fresh ,
Please use following DAX:
Measure =
DIVIDE (
SUM ( 'Table'[CounterA] ) - SUM ( 'Table'[CounterB] ),
SUM ( 'Table'[CounterA] )
)
I got the following value:
Please let me know if this didn't help.
Hey, @rajulshah thanks for your assistance! But sorry I still receive a wrong value. I get the same result for each Row, even if CounterA & CounterB is 0. Its really strange...
@Fresh , can you post the screenshot of the input data and what output you are getting?
Because I believe that you are plotting some other columns as we are not getting the context.
I need (Sum(CountA) - Sum(CountB))/Sum(CountA)
| Day | Month | CounterA | CounterB |
| 26.02.23 | 2 | 120 | 3 |
| 27.02.23 | 2 | 0 | 0 |
| 28.02.23 | 2 | 119 | 5 |
| 01.03.23 | 3 | 120 | 8 |
| 02.03.23 | 3 | 1 | 0 |
| 03.03.23 | 3 | 119 | 9 |
| 04.03.23 | 3 | 121 | 10 |
| 05.03.23 | 3 | 0 | 0 |
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.