DAX VAR defining named variables in the middle of the measure code
问题 I have been presented here with a bizarre exploitation of VAR function. So far I have encountered VAR in the beginning of the measure, right after the equal sign. See the code below: Expected Result = SUMX ( VALUES ( Unique_Manager[Manager] ), VAR SumBrand = CALCULATE ( SUM ( Budget_Brand[BudgetBrand] ) ) VAR SumProduct = CALCULATE ( SUM ( Budget_Product[BudgetProduct] ) ) RETURN IF ( ISBLANK ( SumProduct ), SumBrand, SumProduct ) ) Here VAR is nested deeply inside the measure code. Needless