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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.