Forum Discussion
Error with PREVIOUSMONTH - duplicatedates
- 8 years ago
HI Anonymous,
Please create a Calendar table covering your period ( for example 2 years ..) and link this table to your fact table by the date.
Then you can write your measure with the previousmonth function and calendar date.
Hope it helps otherwise give sample data and will help.
Ninter.
HI Anonymous,
Please create a Calendar table covering your period ( for example 2 years ..) and link this table to your fact table by the date.
Then you can write your measure with the previousmonth function and calendar date.
Hope it helps otherwise give sample data and will help.
Ninter.
- Anonymous8 years agoNot applicable
What do you mean by link the table?
- v-jiascu-msft8 years ago
Microsoft Employee
Hi Anonymous,
It's the new date table. We usually create an independent date table in your scenario. Please give it a try.
Calendar = calendar(date(2017,1,1),date(2018,12,31))
Calendar = calendarauto()
Best Regards,
Dale
- Anonymous6 years agoNot applicable
Hey Interkoubess , any suggestions how to work it out when we use Power BI streaming dataset and we can't created additional dataset?
- Nathaniel_C6 years ago
Community Champion
Anonymous ,
Not sure how that works, but can you add an index to your table in Power Query? If so, you can use that to find the previous row.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel- Anonymous6 years agoNot applicable
Nathaniel_C , I can manipulate with dataset however I want. But for different categories may be updated in different times so I will not be able to use TOP N filter (because some values will not be shown there).