Forum Discussion
Filter on status and date condition
- Anonymous2 years ago
Hi Sams11
1.You can insert new step after named(Custom1)
2.and insert the follwing code
=Table.SelectRows(the last step name,e.g #"Changed Type", each ([issuetype] ="Defect") and ([status]="Closed"))3.Then insert a new step again, named Custom2
=Table.SelectRows(Custom1, each [date] >#date(2023, 4, 1) and [date] < #date(2023, 4, 30))Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
On the ribbon select: Add Column/Custom Column
A dialog box opens, enter this code into the custom column formula area:
[Status] = "Closed" and [updated date] > #date(2023, 4, 1) and [updated date] < #date(2023, 4, 30)
Names between [ ] can also be selected from and entered by double clicking their name in the Available columns section on the right hand side of the dialog box. Please note that power query's M is case sensitive.
I hope this is helpful
But I have one problem here.. Since I am using DirectQuery-> I do not have access to table view and custom columns...
I can only do right click "Add Column", Is there a way I can acheive this?