Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Create a constant value using DAX that wont be affected by filters

Hello all,   I am trying to create a measure that will be a constant value that wont be affected by slicing.    the measure currently is    SalesIsLatest = CALCULATE(SUM(Metrics[Sales]),Metric...
  • az38's avatar
    6 years ago

    hi Anonymous 

    not clearly understand but you can use 

    SalesIsLatest = CALCULATE(SUM(Metrics[Sales]),Metrics[islatest] =1, ALL(Metrics))

    there will be SUM() by whole amount of data and it will the same in any case

     

    also you can use the simple

    SalesIsLatest = 20