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
erhang
Helper II
Helper II

Dax Formula Help

Hi there ;

 

İ just want to create a new formula but i can nat create because i am very new at DAX .

 

Coluld you pls help me about below issue , thanks for your supports.

 

Issue : 

 

I have one column with dates as below.İ want to see that , if the date column's date is after this month ( the month that we are in)  , it will write to  near cell "true" in number column.İf not  the cell will be empty in new column.

 

İ want like that : 

Capture.JPG

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Drors
Resolver III
Resolver III

Hi,

Just add a calculated column and use that DAX formula : 

Number =
IF(AND(MONTH(Table1[Date])>MONTH(NOW()),YEAR(Table1[Date])>=YEAR(NOW())),"TRUE",BLANK())

 

1.PNG

View solution in original post

2 REPLIES 2
Drors
Resolver III
Resolver III

Hi,

Just add a calculated column and use that DAX formula : 

Number =
IF(AND(MONTH(Table1[Date])>MONTH(NOW()),YEAR(Table1[Date])>=YEAR(NOW())),"TRUE",BLANK())

 

1.PNG

Hi drors ; 

 

I am very glad to see your reply , and it is working .

 

Thank you very much for support.

 

 

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