Forum Discussion

Haripinnoju's avatar
Haripinnoju
Frequent Visitor
3 years ago
Solved

undefined

Hi, I need a dax query which can show the data of the spend(usd) based on the current months/year, i.e., as now it is H1 of the year, it should the spend data of the H2 2022+ 2023 YTD, When it is aft...
  • ryan_mayu's avatar
    3 years ago

    Haripinnoju 

    maybe you can try this

    Measure = if(month(today())>6,sumx(FILTER('Table','Table'[date]>=date(year(today()),1,1)),'Table'[value]),sumx(FILTER('Table','Table'[date]>=date(year(today())-1,7,1)),'Table'[value]))