Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi
Sorry I am a begginer in PowerBI
I have the following table of contracts. The end date is empty if the contract is still alive.
The price is for one year subscription.
ContractID StartDate EndDate Price for 12 months
1 01/07/2021 01/07/2022 100
2 01/01/2021 31/12/2021 200
3 01/09/2021 300
I would like to calculate the revenue per year and the number of active contracts per year
Year Revenue Nb Contracts
2021 350 3
2022 350 2
2023 300 1
Thank you for your help
@Anonymous
Take a look at these two Quick Measures as I think you want something like them.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365