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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
electrobrit
Post Patron
Post Patron

Setting up a billing by month until total is reached

I am having a time with this and hoping someone can give me some help.

I've taken a sample of opportunities where the agreement may involve revenue (one-time) and/or revenue (monthly), both we'd start billing 30 days follwing the projected close date.
So if it has a one-time revenue, that gets billed 30 days after close in the full amount and if it has a monthly, the monthly billing begins 30 days after close for the monthly. If both, the one time + monthly, then monthly there after. The # of months for the "recurr amount" which is the total divided by months. (in the first opp you'll it's both a one time and monthly for 1 month).
So it could have first month amount that differs from the monthly amount. Both are billed (and reflected monthly) until the total (Revenue total) is paid.
I've created all of this but then I am stumped at a certain point. (pbix is attached)

What I can't figure out how to do is
1) would like to have it like the speadsheet where it shows the monthly amount by opportunity and a table we these amounts in a table together by month/year so we can see a total billed each month? (the month/year going across)
2) how do i get these amounts to line up and keep billing until they reach the total, then stop? I have several attempts in the pbix file.
I've created start and end dates but can't tell how to join with the date and bring in totals.

 

electrobrit_2-1610137366764.png

 

electrobrit_3-1610137399363.png

 

Links to my work so far (excel and pbix) below so if someone can assist, would be ever so grateful. I'm stumped!

Test Excel 
Test pbix 

 

Thank you for your brain power 🙂 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur I appreciate your work! The one thing that is confusing is if you see in my pbix, those totals by month is one of the steps I am trying to get to. Totals for one time and recurr are not in the same column. You've set your data up like I can get in excel (monthly per opportunity by doing some manual work) but I can't get in Power BI. Any suggestions? Thanks again.

You are welcome.  I have not done any manual work at all.  I took all your source data and ran transformations on it in the Query Editor.  Please study my calculation carefully.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur seriously awesome! I didn't see you had done this on the back-end in query editor but brilliant. Works perfectly. THANK YOU! I was completely stumped for 3 days.

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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