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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have one table called cars with columns price and service:
e.g.
service price
Leasing 20000
Leasing 15000
Leasing 16000
Buying 2000000
Buying 3000000
I added to the table the measure as below to calculate my yield of leasing a car vs buying:
Hi @Anonymous ,
If you've fixed the issue on your own please kindly share your solution. If the above posts help, please kindly mark it as a solution to help others find it more quickly. Thanks!
Best Regards,
Yingjie Li
Hi @Anonymous ,
Seems like you have used wrong filter expression to cause this issue.
When filter in the expression, you need to use all() to clear all the filters in the table then create a new filter term in the expression.
The right expression should be like @Tahreem24 mentioned:
Yield % =
VAR Leasing =
CALCULATE (
[Average price],
FILTER ( ALL ( Car ), 'Car'[Service] = "Leasing" )
) * 12
VAR Buying =
CALCULATE ( [Average price], FILTER ( ALL ( Car ), 'Car'[Service] = "Buying" ) )
RETURN
( Leasing / Buying ) * 100
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Wow thanks a lot for the hard work. It sstill shows ALL INFINITY, not sure why !
I uploeaded the data here so you can see: data.csv
https://drive.google.com/file/d/16pi6gZdT0EIczBP159iKe5LF5WxyXvm5/view?usp=sharing
Hi @Anonymous ,
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@Anonymous
try
Yield % =
100 *
DIVIDE(
CALCULATE(AVERAGE(car[Price]), car[service]="Leasing")*12,
CALCULATE(AVERAGE(car[Price]), car[service]="Buying"),
0
)
Now I got all values as zero.... strange. I put the columns in table to see, and average price cloumn is all kind of values and the yiled % is zero.... so not working
are you using a whole number or a decimal, add 2 decimal places as maybe you can't see the value.
Proud to be a Super User!
It is decmila, 0.00.... very strange
@Anonymous ,
Try the below measure:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!