Forum Discussion
Haripinnoju
3 years agoFrequent Visitor
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...
- 3 years ago
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]))
Haripinnoju
3 years agoFrequent Visitor
Thank you
ryan_mayu
3 years agoSuper User
you are welcome