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

Calculate revenue for active subscriptions with a start and end date

Hi,

I have a number of active subscriptions that are active on an adreskey between a start and end date.
As I have a date table as well, I can now plot the number of active subscriptions per date.
The date table is just a CALENDARAUTO generated table, with a month name, month nr, and year column added.

As a third table I have the monthly price of the subscription.

None of the 3 tables have a relationship in the data model.
I would like to see my total revenue per subscription per month in a matrix.

 

I use this measure to calculate the number of active subscriptions. This I can plot on a date (but not a month....):

Active Sub =
CALCULATE(
SUM('Active Sub'[Number]),
FILTER('Active Sub',
AND('Active Sub'[Start date]<=SELECTEDVALUE(Dates[Date]),
'Active Sub'[End date]>=SELECTEDVALUE(Dates[Date]))))

I get stuck on the next step to calculate the revenue per month (number of active subscriptions * the month price)...

And then plot this in a matrix with the subsriptions in the rows and the months (or even better a date hierarchy) in the columns.

Who can help me please?


KR
Analyst J

 

My active subscription table:


AdreskeySubStart dateEnd dateNumber
A11-1-202031-12-20201
B15-1-20201-12-20201
C21-2-20201-7-20201
D31-3-20201-4-20201
E41-4-20201-8-20201
F51-5-20201-10-20201
G51-2-20201-11-20201
H61-6-202015-6-20201
I71-7-20201-11-20201
J81-8-20201-9-20201
K91-9-202031-12-20201
L101-10-202031-12-20201

 My subscription prices table:

 

SubSub namejan-20feb-20mrt-20apr-20mei-20jun-20jul-20aug-20sep-20okt-20nov-20dec-20
1Subscription 1101010101010111111111111
2Subscription 2202020202020202020202020
3Subscription 3303025252525253030303030
4Subscription 4404040404040505050505050
5Subscription 5505050505050555555555555
6Subscription 6606060606060606060606060
7Subscription 7707070757575757575757575
8Subscription 8808080808080808080808080
9Subscription 9909085858590909095959595
10Subscription 10100100100100100100100100100100100100

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

Sorry for my late repley.

 

I am coufused about your subscription prices table. Could you please give an example to show how to calculate revenue by you subscription prices table? And what kind of result you want, it is best to present it in the form of screenshots.

 

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

Any thoughts from the experts here, maybe?
I could really use some help or pointers on how to approach this.

Thanks in advance!
 @amitchandak , @mahoneypat @Fowmy @PhilipTreacy 

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.