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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jessica_Ballard
Frequent 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
Super User

@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())

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors