Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a 12 data points for the current year. Per month there is each data point. These data points will be same for next 5 years but we have no entry in data. How can i
Present the same points for next 5 year in line chart in power bi. Data is as follows
Jan 2024 - โน40
Feb 2024 - โน250
March2024 - โน25
April 2024 - โน650
May 2024 - โน700
June 2024 - โน120
July 2024 - โน200
Aug 2024 - โน60
Sep 2024 - โน725
Oct 2024 - โน825
Nov 2024 - โน280
Dec 2024 - โน340
I dont want to duplicate the data but want acheive it dynamically with dax.
Solved! Go to Solution.
Hi @Snapdrag ,
Hope everything is going well.
Please follow these steps:
1. This is raw data.
2. To create a date table, the DAX syntax is as follows:
Calendar = CALENDAR (DATE (2024, 1, 1), DATE (2029, 12, 31))
3. Create a calculated column, and then create a new table based on this calculated column. This new table contains the dates of each month of this year and the next 5 years.
The DAX syntax for calculated columns is as follows:
Column = FORMAT('Calendar'[Date],"yyyy-mmmm")
The new table DAX syntax is as follows:
Table = VALUES('Calendar'[Column])
4. Perform data modeling on three tables.
5. In the report page, select the line chart visual object, drag "Year" and "Month" in the Date hierarchy in the "Table" table to the X axis, and drag "Projected Sales" to the Y axis for display.
The page effect is as shown below.
pbix file is attached.
If you need any other help please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Hi @Snapdrag ,
Hope everything is going well.
Please follow these steps:
1. This is raw data.
2. To create a date table, the DAX syntax is as follows:
Calendar = CALENDAR (DATE (2024, 1, 1), DATE (2029, 12, 31))
3. Create a calculated column, and then create a new table based on this calculated column. This new table contains the dates of each month of this year and the next 5 years.
The DAX syntax for calculated columns is as follows:
Column = FORMAT('Calendar'[Date],"yyyy-mmmm")
The new table DAX syntax is as follows:
Table = VALUES('Calendar'[Column])
4. Perform data modeling on three tables.
5. In the report page, select the line chart visual object, drag "Year" and "Month" in the Date hierarchy in the "Table" table to the X axis, and drag "Projected Sales" to the Y axis for display.
The page effect is as shown below.
pbix file is attached.
If you need any other help please feel free to contact me.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
Check out the November 2025 Fabric update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!