Forum Discussion
Willborn
9 years agoAdvocate III
Calculating Values with FX Rates from different periods
Good morning I'm struggling with finding a solution for calculating with currency rates – so far tried almost everything, but I guess, this can be done with DAX measures only. Would be great, if...
- Anonymous9 years ago
Hi Willborn,
>>Is there some possibility to filter the table "-13 month" from today?
Yes, it is possible. You can take a look at below formula:
#"Filtered Rows" = Table.SelectRows(#"Previous StepName", each [Filter ColumnName] >= Date.AddMonths(Date.From(DateTime.LocalNow()),-13) and [Filter ColumnName] <= Date.From(DateTime.LocalNow()))
Regards,
Xiaoxin Sheng
Willborn
9 years agoAdvocate III
Is there some possibility to filter the table "-13 month" from today?
Regards Patrick
Anonymous
9 years agoNot applicable
Hi Willborn,
>>Is there some possibility to filter the table "-13 month" from today?
Yes, it is possible. You can take a look at below formula:
#"Filtered Rows" = Table.SelectRows(#"Previous StepName", each [Filter ColumnName] >= Date.AddMonths(Date.From(DateTime.LocalNow()),-13) and [Filter ColumnName] <= Date.From(DateTime.LocalNow()))
Regards,
Xiaoxin Sheng
- Willborn9 years agoAdvocate III
Hello Xiaoxin
Many thanks for your help - I got it and it's working. Actualllly, as I need only Last Month in Previous Year - I've changed the formula to:
= Table.SelectRows(#"Renamed Columns2", each [Date] >= Date.AddMonths(Date.From(DateTime.LocalNow()),-14) and [Date] <= Date.AddMonths(Date.From(DateTime.LocalNow()),-13))
Thanks and best regards!
Patrick