Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Ribeiro
Specialist
Specialist

Período do mesmo mês e ano anterior:

Bom dia, Senhores:

Tenho esta expressão funciona:

Ela me retorna dia 01/04/2016 a 08/04/2016

Sum({$<Ano ={$(=Year(today()))},Mês={$(=Month(today()))}, [operacao]={'V'} >}valor)

Preciso da mesma expressão ele me retornando.

01/04/2015 a 08/04/2015

Qual ficaria?

Neves
1 Solution

Accepted Solutions
fabionakashigue
Partner - Creator
Partner - Creator

Cara existem diversas formas de se realizar esta expressão. Segue uma

=Sum({<Data= {'>=$(=AddYears(Monthstart(Today()),-1))<=$(=AddYears((Today()),-1))'}, [operacao]={'V'}>}valor)

View solution in original post

16 Replies
sunny_talwar

May be this:

Sum({$<Ano = {$(=Year(Today() - 1))}, Mês = {$(=Month(Today()))}, Day = {$(='<=' & Day(Today()))}, [operacao]={'V'} >}valor)

sunny_talwar

Alternatively, you can use Date:

Sum({$<Ano, Mês, Day, Date = {"$(='>=' & Date(AddYears(MonthStart(Today()), -1),'YourDateFieldFormatHere') & '<=' & Date(AddYears(Today(), -1),'YourDateFieldFormatHere'))"}, [operacao]={'V'} >}valor)

Ribeiro
Specialist
Specialist
Author

did not work, I need the previous year and the month in the same hazard

Neves
sunny_talwar

What is your dimension? Date or MonthYear?

Ribeiro
Specialist
Specialist
Author

x.png

Neves
sunny_talwar

Working on this?

Capture.PNG

Ribeiro
Specialist
Specialist
Author

Sum({$<Ano ={$(=Year(today()))},Mês={$(=Month(today()))},Dia={$(=Day(today()))}, [operacao]={'V'} >}valor)

Ano = Year

Mês = Month

Dia = Day

Data: Date

Sum({$<Ano ={$(=Year(today()))},Mês={$(=Month(today()))}, [operacao]={'V'} >}valor)

I need you to back me the year and month the previous year. (Proprocional)

Exemplo: Periodo acima: 01/04/2016 a 08/04/2016


Meta: 01/04/2015 a 08/04/2016


Neves
Ribeiro
Specialist
Specialist
Author

Yes

I need to compare year and Mes 2016 and Year and Month 2015

Neves
sunny_talwar

Is this a pivot table or straight table? What are/is the dimension/s?