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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Duplicate the max value (forecasting)

Hi,

 

I have a simple table with three columns (10000 rows):

EmployeeMonthTeam
0010211-8-2020A10
0010211-9-2020A10
0019811-8-2020B12
0052511-8-2020D01
0052511-9-2020B18

 

This information is only available for the months that have passed. For forecasting purposes I would like to copy the last months data into a new month.

 

The solution I have so far:
- Pivot the data with month as the new column headers and team as the value;

- copy the far right column (the last known month), make it next month;

- Unpivot and done.

 

This requires manual work though each month, so I would like to know if there is a way to do this automatically.

(The data is sorted primarily on employee already, with month as second sorting order).

 

Thanks in advance

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Maybe by references the query in a new one,

filtering out the max month, adding a month and then append that query? 😅

View solution in original post

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

You may create calculated column or measure like DAX below.

 

Column1= CALCULATE (MAX( Table1[Month] ),FILTER ( Table1, Table1[Employee]= MAX(Table1[Employee])))



Measure1= CALCULATE (MAX( Table1[Month] ),FILTER ( Table1, Table1[Employee]= EARLIER(Table1[Employee])))

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Maybe by references the query in a new one,

filtering out the max month, adding a month and then append that query? 😅

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors