We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
My calendar table starts on 9/1/2017 and ends on 4/30/2019. I am simply trying create a calculated column that indicates if the date is either in the BASE period or in the TEST period. The BASE period runs from 9/1/2017 to 6/30/2018 and the TEST period runs from 7/1/2018 to 4/30/2019. What is wrong with my calculated column because it returns TEST PERIOD for all the dates including those which are part of the base period?
=if(('Calendar'[Date] >= 9/1/2017 && 'Calendar'[Date] <= 6/30/2018), "Base Period", "Test Period")
Thank you.
Solved! Go to Solution.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsRegards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you, works perfectly!
Hello,
You can try this:
=if(('Calendar'[Date] >= DATEVALUE("9/1/2017") && 'Calendar'[Date] <= DATEVALUE("6/30/2018")), "Base Period", "Test Period")
Regards,
ElenaN
User | Count |
---|---|
63 | |
59 | |
46 | |
35 | |
32 |
User | Count |
---|---|
85 | |
71 | |
57 | |
51 | |
46 |