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
Solved! Go to Solution.
Hi @Anonymous ,
When using VAR, RETURN is required to return the final value/formula you want. You can write your formula as below
Value =
VAR m =
CALCULATE ( SUM ( 'Table'[A] ), FILTER ( 'Table', 'Table'[B] = "0" ) )
RETURN
m
or simply
Value =
CALCULATE ( SUM ( 'Table'[A] ), FILTER ( 'Table', 'Table'[B] = "0" ) )
By the way in case you are not aware 0 is different from "0" as the latter (in double quotes) is a text string.
Hi @Anonymous ,
When using VAR, RETURN is required to return the final value/formula you want. You can write your formula as below
Value =
VAR m =
CALCULATE ( SUM ( 'Table'[A] ), FILTER ( 'Table', 'Table'[B] = "0" ) )
RETURN
m
or simply
Value =
CALCULATE ( SUM ( 'Table'[A] ), FILTER ( 'Table', 'Table'[B] = "0" ) )
By the way in case you are not aware 0 is different from "0" as the latter (in double quotes) is a text string.
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!