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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Sanjay_GB
Frequent Visitor

Need Help: Extrapolate the latest closed months numbers to remaining months of year in PBI

Hi PBI Experts,

I am looking for your expert advise on extrapolating usage to remaining months of the year in PBI.

The requirement is to have February closed month's actual to remaining months. E.g. if February actual is $50, the same should reflect to each month (March to December) at product/line item level.

 

It would be grateful, if you could share your thoughts to fix this view. Thanks in advance! 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @Sanjay_GB ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1706261195713.png

(2) We can create a date table and a measure. 

DateTable = CALENDAR(DATE(2024,1,1),DATE(2024,12,31)) 
Measure 3 = 
var a=MAXX(FILTER(ALLSELECTED('Table'),[type] IN VALUES('Table'[type])),[Date])
var b=CALCULATE(SUM('Table'[actual]),EOMONTH('Table'[Date],0)=EOMONTH(a,0))
var c=CALCULATE(SUM('Table'[actual]),FILTER('Table',EOMONTH([Date],0)=EOMONTH(MAX(DateTable[Date]),0)))
RETURN IF(EOMONTH(MAX(DateTable[Date]),0)>=EOMONTH(a,0),b,c)

(3) Then the result is as follows.

vtangjiemsft_1-1706261303804.png

Best Regards,

Neeko Tang

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

View solution in original post

5 REPLIES 5
v-tangjie-msft
Community Support
Community Support

Hi @Sanjay_GB ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data. 

vtangjiemsft_0-1706261195713.png

(2) We can create a date table and a measure. 

DateTable = CALENDAR(DATE(2024,1,1),DATE(2024,12,31)) 
Measure 3 = 
var a=MAXX(FILTER(ALLSELECTED('Table'),[type] IN VALUES('Table'[type])),[Date])
var b=CALCULATE(SUM('Table'[actual]),EOMONTH('Table'[Date],0)=EOMONTH(a,0))
var c=CALCULATE(SUM('Table'[actual]),FILTER('Table',EOMONTH([Date],0)=EOMONTH(MAX(DateTable[Date]),0)))
RETURN IF(EOMONTH(MAX(DateTable[Date]),0)>=EOMONTH(a,0),b,c)

(3) Then the result is as follows.

vtangjiemsft_1-1706261303804.png

Best Regards,

Neeko Tang

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

Hi PBI Experts,

 

I have connected a folder where monthly actuals will be loaded by respective team and connected to the dashboard. Now the challenge is:

1) How can I bring months where I don't have actual but can show the latest closed month's actual

2) For example - January 2024 has 100 actuals February 2024 has 150 actuals. I need to replicate/bring 150 (of February closed) actuals to remaining months

 

Would it possible to help me out?

Thank you so much @v-tangjie-msft !!! 🕺

Fowmy
Super User
Super User

@Sanjay_GB 

You also need to share some sample/dummy data that represent your actual scenario and the datamodel along the expected results. This way, we can suggest a solution that should work for you.

Can you share some sample data with the desired output to have a clear understanding of your question?
Mention whether you want a Power Query or DAX calculated column or measure.
You can either paste your data in the reply box or save it in OneDrive, Google Drive, or any other cloud-sharing platform and share the link here.
 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thanks @Fowmy for your reply. The data is huge but let me share an example. I would need to bring the closing month actuals to the remaining month. For Example: If I get 50 Actual Sale in Feb - I need to bring same 50 actual to remainig months. 

 

Sanjay_GB_1-1706086720096.png

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.