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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
gioris
Regular Visitor

Create a new table from existing table to break down an annual payment into monthly upcoming MRR

Hi

 

I have a table with actual payments for a SASS product.

there is a monthly subscription and a yearly subscription option.

The schema of the table is 
_Charge_id
_Team_id
_date
_amount
_plan (yearly or monthly)

I need to create an auxiliary table that calculates upcoming payments so I can create metrics that will compare expected payments versus actual payments and churned revenue.


so in the case of the first ever payment of a team_id I need to create a recurring row in a new table (let's name it upcoming_payments)
if the first ever payment of a team id is "monthly" create one row per month for N periods with the monthly value
if the first payment of a team is "yearly" create one row per month for 12 periods with 1/12 of the annual payment.

Maybe there is an another way around this that I haven't thought of using just measures and DAX
so any suggestion would be welcome






 

thanks in advance

2 REPLIES 2
v-jiascu-msft
Employee
Employee

Hi @gioris,

 

Can you share a dummy sample data and the expected result please?

1. Do you want to create a calculated table or a table visual?

2. Maybe you need a date table in such scenario.

3. How to calculate the forecast values? 

 

Best Regards,

Dale

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

@v-jiascu-msft
I need a calculated table so I can have measures etc,

I already have a date table in my model

 

 

Basic Table 

charge_idTeam IDDate CanAmountPlanDateis first payment
332098622/3/20175.529,00 €business_year22/3/2017 0:00yes
4516203312/7/20171.620,00 €business_month12/7/2017 0:00yes

 

so only in the case of first payments
if business year then create for the next 12 months a row for each expected MRR payment with  1/12 of the annual payment, and an expected date (date +30 would do)

 

if business month then for N next months create a row with the date+30 days and the same amount/ expected MRR

 

Expected New Table

first_charge_idTeam IDDate CanMRR expectedPlanBase Amount
372328026/6/2017460,75 €business_year5.529,00 €
372328026/7/2017460,75 €business_year5.529,00 €
372328025/8/2017460,75 €business_year5.529,00 €
372328024/9/2017460,75 €business_year5.529,00 €
372328024/10/2017460,75 €business_year5.529,00 €
372328023/11/2017460,75 €business_year5.529,00 €
372328023/12/2017460,75 €business_year5.529,00 €
372328022/1/2018460,75 €business_year5.529,00 €
372328021/2/2018460,75 €business_year5.529,00 €
372328023/3/2018460,75 €business_year5.529,00 €
372328022/4/2018460,75 €business_year5.529,00 €
4516203312/7/20171.620,00 €bussiness_month1.620,00 €
4516203311/8/20171.620,00 €bussiness_month1.620,00 €
4516203310/9/20171.620,00 €bussiness_month1.620,00 €
4516203310/10/20171.620,00 €bussiness_month1.620,00 €
451620339/11/20171.620,00 €bussiness_month1.620,00 €
451620339/12/20171.620,00 €bussiness_month1.620,00 €
451620338/1/20181.620,00 €bussiness_month1.620,00 €
451620337/2/20181.620,00 €bussiness_month1.620,00 €
451620339/3/20181.620,00 €bussiness_month1.620,00 €
451620338/4/20181.620,00 €bussiness_month1.620,00 €
451620338/5/20181.620,00 €bussiness_month1.620,00 €
      

 

thanks

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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