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
TimHill83
Regular Visitor

Showing Cumulative Monthly Billing from a single table row

Hi all,  I've been struggling with this alone for about a week, so I hope you don't mind me picking your brains.

 

I have a CRM table with a list of opportunities, which each has a monthly billing value and a billing start date.  What I want to ultimately acheive is a visual that allows me to show a cumulative month on month billing, for each customer based on their billing start date.

 

Here's a mockup of the data I have and what I want to get to, done in quickly in Excel:

 

mockup - cumulataive monthly billing.jpg


  

My actual data model is quite complex, but the part relevant to this is a Opportunity Table (which looks like the above) linked (via inactive relationship) to a date dimension table. (Opportunity['Billing start date'] ---> Date['Date key'])

 

Would you be able to give me any pointers on how I can create this?

 

I've so far managed to create the measure to map the amounts into a date, but I can't figure out how to get it cumulative by customer.

 

What I have so far is:

 

 

Predicted Monthly Revenue =
CALCULATE(SUM(Opportunity['Monthly Billing Amount']),
USERELATIONSHIP(Opportunity['Billing start date'],'Date'['Date key']))

 

Many thanks in advance for any help

1 ACCEPTED SOLUTION

@TimHill83

 

I don't quite get the idea why you need the visual displaying like that, but some tricks can be played to get the expected output.

Capture.PNG

 

See more details in the attached pbix.

If you have any question, feel free to let me know.

 

View solution in original post

5 REPLIES 5
CheenuSing
Community Champion
Community Champion

Hi

 

I hope you have a Calendar Table Created 

Create a measure BillingAmount:= Sum(OpportunityData[Monthly Billing Amount])

Create a measure called as YTDOpportunity

as

 

YTDOpportunity:=CALCULATE([BillingAmount], DATESYTD(Calendar[FullDate]))

 

FullDate is the actual date of billing amount.

 

Use the YTDOpportunity to plot and you shaould have the results.

 

Best 

 

Cheenusing

 

 

Did I answer your question? Mark my post as a solution and also give KUDOS !

Proud to be a Datanaut!

Many thanks Cheenusing, that takes me some of the way there, but I'm still not quite getting it. I do have a calendar table.

 

When I follow your instructions I can get an accurate cumulative graph as below:

 

mockup - cumulataive monthly billing1.jpg

But when I add the customer feild in the legend, the the below happens.

mockup - cumulataive monthly billing2.jpg

 

What I really want to do is see the amount of each bar by customer, like my example.  Any further thoughts? 

mockup - cumulataive monthly billing.jpg

@TimHill83

 

I don't quite get the idea why you need the visual displaying like that, but some tricks can be played to get the expected output.

Capture.PNG

 

See more details in the attached pbix.

If you have any question, feel free to let me know.

 

Thanks Eric, This does what I need and I understand it. I had no idea what I was asking for ending up being so complex, but I guess I'm on a learning curve with what is and isn't easy to achieve!! Thanks again

Many thanks Eric.

 

It's so that we can visually see as monthly revenue increases, which customers contribute what proportion to a given month's income.

 

I'll take a look at that pbix later today and try to learn your tricks 🙂

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!

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.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.