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
juliliscarmo
Helper I
Helper I

Last year by category

Hi experts,

 

I would like to create a new column with last 1 year values, where A is the last value and A need to be the first value, as is possible to see below.

ClienteTypeValueDate Dream
1A504/30/2016  
1B344/30/2016  
1B504/30/2016  
1B5009/30/2017  
1C1109/30/2017  
1C1009/30/2017  
1C1010/24/2017  
1A5010/24/2017 TRUE
1A4012/21/2017 TRUE
1B5012/18/2017 TRUE
1B451/19/2018 TRUE
1A53/27/2018 TRUE
2A5004/30/2016  
2B6009/30/2017  
2A309/27/2017 TRUE
2B5010/24/2017 TRUE
2C3412/21/2017 TRUE
2C5612/18/2017 TRUE
2A861/19/2018 TRUE
2B663/22/2018  

 

I tryied to use this formula, but I didnt have sucess.

Period_1year =
VAR CurrentDate =
CALCULATE(MAX ( Table[Date]),ALLEXCEPT(Table,Table[Client]))
VAR StartingPoint =
CALCULATE( EOMONTH( CurrentDate, -12 ) + 1, Table[Type] = "A" )
RETURN
Table[Date]>=StartingPoint && Table[Date.1]<=CurrentDate

Best Regards

Juli

2 REPLIES 2
smpa01
Super User
Super User

@juliliscarmocan you please elaborate what is the condition this calculated column needs to satisfy?

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Sure! I would like to calculate the IRR for last year, not XIRR just IRR.

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.