cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jessica_Ballard
Regular Visitor

True False filter expression with a date column

Hello,

 

I have two columns one is a Total Column and One is a date column. I want to create a column that will show True when the total is greater than 0 and the date is during the current quarter. I'm relatively new to DAX so forgive me if this is super simple but I am having a hard time getting it to work.

1 REPLY 1
amitchandak
Super User IV
Super User IV

@Jessica_Ballard , A new column like

 

new column =var _month = mode(month(today()),3)
var _end= eomonth(today(), if(_month=0, 0, 3-_month))
Var _st = eomonth(_end,-3)+1
return
if([Date] >=_st && [date] <=_end && [total] >0,true(),false())



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors