Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dax Help

Hi Team,   Am trying to build a report that contain a table with several columns(include meassure also). I have some slicers including date also. The table is like above attached one. I ha...
  • ryan_mayu's avatar
    ryan_mayu
    4 years ago

    Anonymous 

    pls  try this

    Measure 2 = 
    VAR _year=max('Table'[Year])-1
    return CALCULATE(sum('Table'[Number Od Devices]),FILTER(ALLEXCEPT('Table','Table'[Account Name ]),'Table'[Year]=_year))

    pls see the attachment below

  • tamerj1's avatar
    4 years ago

    Anonymous 
    You mean something like this?

    Number of Devises = SUM ( Data[Number Od Devices] )
    Number of Devices Last Year = 
    CALCULATE (
        [Number of Devises],
        Data[Year] = MAX ( Data[Year] ) - 1
    )