cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fbostan1
Frequent Visitor

Need Help with Between statement

I need help with this, I want to write a Dax formula in a new column for

(If ORDR_DATE is between Rx Direct and Rx Direct End then "Y" else "N")?

I'm referencing to the picture below.fbostan1_0-1647545779303.png

I tried to search, couldn't find ways to write between statement in PBI

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@fbostan1 

pls try 

column = IF(ORDER_DATE>=Rx Direct && ORDER_DATE <= Rx Direct End, "Y", "N")





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ryan_mayu
Super User
Super User

@fbostan1 

pls try 

column = IF(ORDER_DATE>=Rx Direct && ORDER_DATE <= Rx Direct End, "Y", "N")





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




davehus
Super User
Super User

Use Powerquery and create a custom column. if Order_Date >=Rx Direct and Order_Date <=RX Direct End then "Y" else "N" Take note of the lower case in the if statement. 

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors