cancel
Showing results for 
Search instead for 
Did you mean: 
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
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors