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

calculate parallel period in columns

Hi Everyone, 

 

I have a column with some dates or periods,  I need a calculated column with the parallel period, for example teh first result has to be January, 2017, the table is like this: 

 

Date

january, 2018

february, 2018

march, 2018

 

 

 

I am using this formula but the result is a blank column 

Parallel Perdiod = CALCULATE(PARALLELPERIOD(BSC_DATOS_FINANZAS_FLETES[Fecha].[Date];-1;YEAR)) 
 

I will appreciate some help

 

Thanks!

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, try with this

 

Fecha1YPrev = EDATE(Table1[Fecha],-12)

Regards

 

Victor




Lima - Peru

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous,

 

Or you can create a calculate column using DAX below and then change the format with (MMMM yyyy):

Parallel Perdiod = DATE(YEAR('Date'[Date]) - 1, MONTH('Date'[Date]), DAY('Date'[Date]))

Capture.PNG  

 

Community Support Team _ Jimmy Tao

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

Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, try with this

 

Fecha1YPrev = EDATE(Table1[Fecha],-12)

Regards

 

Victor




Lima - Peru

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