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
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
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.