Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
fbostan1
Helper I
Helper I

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
Memorable Member
Memorable Member

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.