The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.