Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

DAX with VAR

Hello, I don't understand why these two DAX codes don't return the same amount in Power BI. In my example, imagine a table with 4 columns: - Date of receipt - Amount of the receipt - Receipt numb...
  • HotChilli's avatar
    2 years ago

    I see this regularly on the forum.  When you assign a measure to a variable, it gets evaluated (and won't change after that). There isn't a notion of some kind of dynamic evaluation where the variable holds the name of the measure and evaluates it at some later point.