Showing results for 
Search instead for 
Did you mean: 
Not applicable

Referencing previous values on the same column

Hey guys, 


I'm just staring to use Power BI and I'm trying to do something that doesn't look that hard when it comes to Excel, but I'm struggling for some days now to calculate it in power BI.


I have a table with three columns made by the crossjoin function:


Client    |     Item code    |   Month   

I want to calculate a 4th column to estimate sales for the month, but I need to use the information from previous months to do it. 

For exemple, calculating future sales for june would require me to use the amount of itens sold from january to may.


Is this even possible in power BI? How could I get started? 


Any help would be appreciated

Thanks for the support! Smiley Happy 

v-danhe-msft Super Contributor
Super Contributor

Re: Referencing previous values on the same column

Hi @Anonymous,

From your description, I could not figure out the relationship between the sales and other columns, and I also could not understand how could you want to calculate the future sales? Could you please offer me the sample data of the table made by the crossjoin function and could you give me the logic relation about your desired future sales?



Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 203 members 2,423 guests
Please welcome our newest community members: