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
Anonymous
Not applicable

Putting numbers in a table based on start date/end date.

Hey All,

Currently, I have a table that is looking at the contract level (with customers having multiple contracts), the start date of the contract, the end date, and the revenue per year. 

So something like this:

CustomerID               Annual Value:                    Revenue Start Date:                         Revenue End Date:              Product:

123:                                23,000                                    2/2/2018                                   2/2/2019                           Car Lease

123:                                12,000                                     2/3/2018                                   4/4/2019                          Car Lease

456:                                5,000                                       2/7/2018                                    5/8/2018                         Boat lease 

I've created a calendar that starts at the earliest revenue start date, and ends at the latest revenue end date (looking at each month). I want to populate this table with a sum of the revenue in annual value for each customer per month. So something like:

 

                                            

Feb 2018:  Customer 123     -   23k annual value - Car Lease

Feb 2018: Customer 123      -   12k annual value  - Car lease 

Feb 2018: Customer 456      - 5k annual value - boat lease

 

Any ideas?

 

 

 

 

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

I have a little confused about your desired output.


I've created a calendar that starts at the earliest revenue start date, and ends at the latest revenue end date (looking at each month). I want to populate this table with a sum of the revenue in annual value for each customer per month. So something like:                                  

Feb 2018:  Customer 123     -   23k annual value - Car Lease

Feb 2018: Customer 123      -   12k annual value  - Car lease 

Feb 2018: Customer 456      - 5k annual value - boat lease


It seems that you want to calculate the revenue everymonth per customer, so the output should be like below.

Capture.PNG

Why do you want to have 2 records for customer 123 in Feb 2018?

If it is convenient, please describe your logic in more details so that we could help further on it.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
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

4 REPLIES 4
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

I have a little confused about your desired output.


I've created a calendar that starts at the earliest revenue start date, and ends at the latest revenue end date (looking at each month). I want to populate this table with a sum of the revenue in annual value for each customer per month. So something like:                                  

Feb 2018:  Customer 123     -   23k annual value - Car Lease

Feb 2018: Customer 123      -   12k annual value  - Car lease 

Feb 2018: Customer 456      - 5k annual value - boat lease


It seems that you want to calculate the revenue everymonth per customer, so the output should be like below.

Capture.PNG

Why do you want to have 2 records for customer 123 in Feb 2018?

If it is convenient, please describe your logic in more details so that we could help further on it.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Figured it out, thanks for help.

Anonymous
Not applicable

Hey Cherry,

Any thoughts on how to do that output?

 

Joseph

Anonymous
Not applicable

Hi Cherry,

I think you're outcome works. 

Ideally, we look at the end day of every month (so EOMONTH in there) and say recurring revenue per year is X. if the next month is 5k lower than X, we know the customer churned revenue in some way. If we filter it by product, we can also see the performance of boat leases vs car leases, in this case. 

How do I do that outcome? 

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.