Forum Discussion
TK202_BI
8 years agoFrequent Visitor
Need help with create SamePeriodLastYear in Query Editor
In my scenario, I will need to pivot this SamePeriodLastYear column. So I can't do it with DAX. Can anyone help me create it with Power Query M? Thank you in advance.
Anonymous
8 years agoNot applicable
HI TK202_BI,
>>The column I have for previous year invoice line amount is created by DAX, which is not able to be pivoted. Can you please take a look and advice how I can achieve this with Power Query
The simplest method is summary your table data by year, then add a custom column to look up the previous year total value.
Reference:
Regards,
Xiaoxin Sheng
TK202_BI
8 years agoFrequent Visitor
Hi Anonymous, I don't see any option to summary my data by year. I tried both Basic and Advanced. Am I in wrong place?
- Anonymous8 years agoNot applicable
Hi TK202_BI,
You should add a column to store the year part of your data, them use this column as the group column.
Regards,
Xiaoxin Sheng