Forum Discussion

kza40381's avatar
kza40381
Frequent Visitor
4 years ago
Solved

Create Column If date falls within next week

Hi all,  I am very new to Power BI.  I am trying to create a column which indicates if my planned date column/field falls within the next week or 7 days.  I need it to result in a number 1 else 0.  Can someone help me?  I have tried an If statement, but still can't figure it out.

 

Planned DateComing Due Next week
11/10/20211
12/3/20210
  • kza40381 , Try a new column like

     

    New Column = if([Planned Date]>= Today() && Planned Date] <= today() +7,1,0)

     

1 Reply

  • kza40381 , Try a new column like

     

    New Column = if([Planned Date]>= Today() && Planned Date] <= today() +7,1,0)