cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
naocisneros Frequent Visitor
Frequent Visitor

Re: SAMEPERIODLASTYEAR()

This worked for me:

 

nest two funtion: add date and previous month

 

Importe MismoMes AñoAnt =
CALCULATE(
SUM('MR GOPMX_ViewA'[Importe MN]), DATEADD(PREVIOUSMONTH(DateDim[FullDateAlternateKey]),-11,MONTH))

Highlighted
naocisneros Frequent Visitor
Frequent Visitor

Re: SAMEPERIODLASTYEAR()

This worked for me:

 

nest two functions: date add and previous month.

I have a table created / have the property configured as a date table.

 

Importe MismoMes AñoAnt =
CALCULATE(
SUM('MR GOPMX_ViewA'[Importe MN]), DATEADD(PREVIOUSMONTH(DateDim[FullDateAlternateKey]),-11,MONTH))

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 26 members 949 guests
Please welcome our newest community members: