Forum Discussion
P0W3RB1
Helper I
10 years agoDates - Last 4 weeks, Next 4 weeks
Dates !!!! :) In Dynamics CRM its very easy to pull off a report of for example all Orders older than X week, or Orders due in Next X weeks. Seems odd that Power BI doesnt have this simple functi...
- 10 years ago
You can edit it after this step manually, just add seciond condition in code
hohlick
Continued Contributor
10 years agoHello P0W3RB1
You can add custom column with UI in Query Editor:
- Select dates column
- In "Add column" tab in "Date" group select Age
- Select new column, in "Transformation" tab in "Duration" group select "Days"
- Add custom conditions column with condition like "if [AgeFromDate]<28 and [AgeFromDate]>0 then true else false", name it Last4Weeks
- Add custom conditions column with condition like "if [AgeFromDate]>-28 and [AgeFromDate]>0 then true else false", name it Next4Weeks
- You can finetune where to add todays orders