Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Snapdrag
Helper II
Helper II

Next 5 year projection

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.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Snapdrag ,

 

Hope everything is going well.

 

Please follow these steps:

 

1. This is raw data.

vhuijieymsft_0-1707191990892.png


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.

vhuijieymsft_1-1707192051382.png


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.

vhuijieymsft_2-1707192096380.png


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!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Snapdrag ,

 

Hope everything is going well.

 

Please follow these steps:

 

1. This is raw data.

vhuijieymsft_0-1707191990892.png


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.

vhuijieymsft_1-1707192051382.png


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.

vhuijieymsft_2-1707192096380.png


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!

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (27)