Forum Discussion
NilR
2 years agoPost Patron
Date Filter Help
I would like to write Dax to select all 3 highlighted rows. I wrote this and it does not grab all 3 row values. LOGIC: Date >= _ENR_DATE && Date <= _Max_date, but I encountered dates that are grea...
- Anonymous2 years ago
Hi NilR ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a tables.
Table 2 = var _Max_Date = DATE(2023,08,31) VAR _ENR_DATE = EOMONTH(_Max_Date,-2)+1 return Filter('Table', [max_enr]> _Max_Date)Table 3 = var _Max_Date = DATE(2023,9,1) VAR _ENR_DATE = EOMONTH(_Max_Date,-3)+1 return Filter('Table', [max_enr] >= _ENR_DATE && [max_enr] <=_Max_Date)(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.