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!View all the Fabric Data Days sessions on demand. View schedule
I have got data like this.....
| Status | Title | Name | Surname | Deparment | License Type | Adding Date |
| Active | Mr. | Susan | Simon | Sale | Office 365 Enterprise E3 | 16/9/2016 |
| Active | Mr. | Tennassi | Koo | Sale | Office 365 Enterprise E3 | 16/9/2016 |
| Active | Mr. | Andrew | Sundaen | Sale | Office 365 Enterprise E3 | 17/9/2016 |
My requirement is to calculate from their license. If it is no longer licensed, the status will change to inactive.
The Active still show on the status means these licenses are available. and continue using. In this case, there are three data from 2016 in the table. I want to get 3 in 2016, 3 in 2017 and 3 in 2018. (follow this picture).
Then if new user registration in 2019 increase 3 licenses It will be 6 licenses in 2019. (Not in this case)
Now I used this measure
Count of License Type RunningTotal By Adding Date =
CALCULATE(
COUNTA('Community'[License Type]),
FILTER(
ALLSELECTED('Community'[Adding Date]),
ISONORAFTER('Community'[Adding Date], MAX('Community'[Adding Date]), DESC)
)
)
And my result only shows 2016
Please give me an advice and suggest the measure that I have to do. Thank you all for your answer.
HI @saranp780,
Maybe you can use below measure to calculate available license amount based on calendar date:
Count of License Type RunningTotal By Adding Date =
VAR license_range = 24 //month amount
VAR calendar_date =
SELECTEDVALUE ( calendar[Date] )
RETURN
CALCULATE (
COUNTA ( 'Community'[License Type] ),
FILTER (
ALLSELECTED ( 'Community'[Adding Date] ),
calendar_date
IN CALENDAR (
'Community'[Adding Date],
DATE ( YEAR ( 'Community'[Adding Date] ), MONTH ( 'Community'[Adding Date] ) + license_range, DAY ( 'Community'[Adding Date] ) )
)
)
)
Notice: please use calendar date as axis and measure as value.
Regards,
Xiaoxin Sheng
I did it on you giving measure but the result can't display. Could you please, capture a screenshot? @Anonymous
HI @saranp780,
Can you please share a pbix file so I can test my formula with sample data?
Regards,
Xioaxin Sheng
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!