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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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