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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.