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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
BINeophyte
New Member

date range between two different columns

Hello everyone, 

 

Coming from a Tableau background, I am fairly new to the Power BI Community. 

 

Currently, my organization is trying to identify "Active Clients" based on their Start Date and their End Date within various programs. 

 

In Tableau the calculation that worked for us was: 

 

IF( [Project Start Date] <= #7/31/2017#

AND (ISNULL( [Project Exit Date])

OR [Project Exit Date] >= #7/1/2017#))

THEN [Client Unique Identifier]

END

 

Basically, we want to get a list of individuals that were active for the month of July if their start date was July 1, 2017 or later and if they exited the program before the end of July 31, 2017 or they do not have an exit date. 

 

I was trying to work with the DATESBETWEEN( ) function, but I'm getting stuck on using it for two different columns within the same table. 

 

What would be a Power BI equivalent to this?? Any input is greatly appreciated. 

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @BINeophyte,

 

You could have a reference to the links below how to use If in Power BI.

 

Power Query: The IF Function In Power Query

 

Dax: IF Function (DAX)

 

If you still need help, please share some data sample and your desired output so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BINeophyte
New Member

Hello everyone, 

 

Coming from a Tableau background, I am fairly new to the Power BI Community. 

 

Currently, my organization is trying to identify "Active Clients" based on their Start Date and their End Date within various programs. 

 

In Tableau the calculation that worked for us was: 

 

IF( [Project Start Date] <= #7/31/2017#

AND (ISNULL( [Project Exit Date])

OR [Project Exit Date] >= #7/1/2017#))

THEN [Client Unique Identifier]

END

 

Basically, we want to get a list of individuals that were active for the month of July if their start date was July 1, 2017 or later and if they exited the program before the end of July 31, 2017 or they do not have an exit date. 

 

I was trying to work with the DATESBETWEEN( ) function, but I'm getting stuck on using it for two different columns within the same table. 

 

What would be a Power BI equivalent to this?? Any input is greatly appreciated. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.