Forum Discussion
filter dates with measure
Maria_Maria , Try one of the two
max_date_month = CALCULATE(max(table[date]), Filter(all(table), eomonth(table[date],0) = eomonth(max(table[date]),0) && table[category] = max(table[category]) ))
or
max_date_month = CALCULATE(max(table[date]), Filter(allselected(table), eomonth(table[date],0) = eomonth(max(table[date]),0) && table[category] = max(table[category]) ))
Hi amitchandak
Thank you, but it eliminates the initial functionality - to chose the same dates in every month. Now it returns only last dates of months which is not what I am after
- amitchandak4 years agoSuper User
Maria_Maria , Sorry, seems like I did not get it correctly.
Please share sample data and sample output in table format? Or a sample pbix after removing sensitive data.- Maria_Maria4 years agoHelper II
here you go https://file.io/a0IejO06CvQB
sample data, and the outcomes I get with my measures: 2 are correct, 1 is wrong