Forum Discussion

AGajree's avatar
AGajree
Regular Visitor
2 years ago
Solved

DAX CODE Understanding

All respondents no brand (brand info) =
CALCULATE (
    SUMX (
        DISTINCT ( 'factBrandAwareness'[ObservationGUID] ),
        FIRSTNONBLANK ( 'factBrandAwareness'[Weighted], 0 )
    ),
    ALL ( 'dimBrandsByCountry'[Brand] )
)


Hi All

I am new to Power BI and DAX, I have the above code in an existing report I have picked up, would someone be able to break down what this doing on a generic level?

Thx!

  • AGajree 

    The measure computes the total sum of the 'Weighted' column for all brands. It does this by accumulating the 'Weighted' values for each 'ObservationGUID' individually, considering only the first non-blank value for each 'ObservationGUID'.

1 Reply

  • AGajree 

    The measure computes the total sum of the 'Weighted' column for all brands. It does this by accumulating the 'Weighted' values for each 'ObservationGUID' individually, considering only the first non-blank value for each 'ObservationGUID'.