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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Digger
Post Patron
Post Patron

CustomForecast

I have data source like

Digger_0-1643100717836.png

 

with multiples codes

I need make measure which should do something like that

 

Digger_1-1643100771781.png

Fomula:  If Percent >=10 then predict each next month goes by 15 percent until get 100

 

Digger_2-1643100856010.png

 

So how to write measure to achive that?

I found this article http://blog.gbrueckl.at/2015/04/recursive-calculations-powerpivot-dax/ it partialy that what i want but problem is there are no PBX file only DAX inside Xlsx and i cant move measures to PBI as they not work

 

 

First prolem with @SergKolomiets  example, is what showing empty column without data

Digger_0-1643986038347.png

And Sums not goes to each month, so i cant multiply sum of all dates grouped by code by percentage

Digger_1-1643986211096.png

 

https://file.io/y2wvQ49hNe6q

5 REPLIES 5
SergKolomiets
New Member

Good afternoon. There are two tables that are not related to each other: the Date calendar and the Base source table. The measure is as follows:

 

SergKolomiets_0-1643859986567.png

 

@SergKolomiets  T.y. good try but it not work with relations enabled, ineed relation between Base[date] and Date[Date]

SergKolomiets_0-1644888265748.png

 

v-angzheng-msft
Community Support
Community Support

Hi, @Digger 

The logic here is not too difficult to implement.But just curious how you would like to display in Power BI to get the results.Add a column for each month up to the maximum date, like in the image above? Or generate a forecast trend for each month on a line chart?

 

Please share more details about what you want to achieve with PowerBI

 

 

Best Regards,
Community Support Team _ Zeon Zheng

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

@v-angzheng-msft   I want put measure to values and date in columns on axis will be code, everything in matrix

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.