Forum Discussion
Pbiuserr
4 years agoPost Prodigy
Change table granularity
Hello,
I have a table where granurality is yearly, like
| ID | AMOUNT | DATE |
| ID999 | 1000 | 29.04.2022 |
| ID999 | 2000 | 10.03.2021 |
My expected result is
| ID | AMOUNT | DATE |
| ID999 | 1000 | 01.01.2022 |
| ID999 | 1000 | 01.02.2022 |
| ID999 | 1000 | 01.03.2022 |
| ID999 | 1000 | 01.04.2022 |
| ID999 | 1000 | 01.05.2022 |
| ID999 | 1000 | 01.06.2022 |
| ID999 | 1000 | 01.07.2022 |
| ID999 | 1000 | 01.08.2022 |
| ID999 | 1000 | 01.09.2022 |
| ID999 | 1000 | 01.10.2022 |
| ID999 | 1000 | 01.11.2022 |
| ID999 | 1000 | 01.12.2022 |
| ID999 | 2000 | 01.01.2021 |
| ID999 | 2000 | 01.02.2021 |
| ID999 | 2000 | 01.03.2021 |
| ID999 | 2000 | 01.04.2021 |
| ID999 | 2000 | 01.05.2021 |
| ID999 | 2000 | 01.06.2021 |
| ID999 | 2000 | 01.07.2021 |
| ID999 | 2000 | 01.08.2021 |
| ID999 | 2000 | 01.09.2021 |
| ID999 | 2000 | 01.10.2021 |
| ID999 | 2000 | 01.11.2021 |
| ID999 | 2000 | 01.12.2021 |
Ideally, id like to change the granurality to monthly (12 months), as the table I need to join it to is monthly
Are there any ways to do that?
1 Reply
- amitchandakSuper User
Pbiuserr , Create another date in power bi using Date or DateTime funtions and then use
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2