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
Anonymous
Not applicable

LAST 6 MONTH MONTH (This Month to last 6 Month)

Hi Team,

I need last 6 month calculated column(not -180day)

IF(DATE>=MONTH(today())-6,"YES","No") its error

 

Mean i need 2020-May,2020-apr,2020-march,2020-feb,2020-Jan,2019-dec

Last 6 month mean i nedd 6 (Not today date to last 6 month,I need this Month to last 6 Month)

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Anonymous , what you trying, seem like you need a column.

Try new column like

IF([DATE]>=date(year(today()),MONTH(today())-6,1),"YES","No")

 

IF([DATE]>=date(year(today()),MONTH(today())-6,day(today())),"YES","No")

View solution in original post

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create calculated column like DAX below.

 

Column=IF(DATE>= EOMONTH(Table[Date],-7)+1 ,"YES", "No")

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create calculated column like DAX below.

 

Column=IF(DATE>= EOMONTH(Table[Date],-7)+1 ,"YES", "No")

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , what you trying, seem like you need a column.

Try new column like

IF([DATE]>=date(year(today()),MONTH(today())-6,1),"YES","No")

 

IF([DATE]>=date(year(today()),MONTH(today())-6,day(today())),"YES","No")

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.