Forum Discussion
Lygral63
Helper I
2 years agoDAX measure (Max/Min)
DAX measures for Max and Min I am looking for the best way to calculate a measure that will compare sales from multiple year in a given Calendar Week and returning the max value. The measure shou...
- 2 years ago
Yes, it's works. Thanks a lot. Much more simple than I expected. Thanks.
Dangar332
Resident Rockstar
2 years agoHi, Lygral63
try below code
min sales by week = MIN('calender week'[Total Sales])
max sales by week = max('calender week'[Total Sales])
- Lygral632 years ago
Helper I
Thanks, but I don't think that works. I need a measure that looks at total sales by Year and by Calendar Week and then returns the max or min value. It could be that in Calendar Week 1 has the max value based on sales in 2016, but Calendar 2 has the max value based on sales in 2015. Hope it makes sense.