March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a Power Bi report containing two tables
table 1 - Licences table
table 2 - a date table
I created this with:
I want to add a measure to the date table that shows how many licences were active on each date
i.e
count licence number (no. licences) from the licence table where
date table.date >= licences.start date
date table.date <= licences.expiry date
Solved! Go to Solution.
Hi @matthewwylie ,
Please refer this measure.
measure =
CALCULATE (
COUNT ( 'Licences'[licence number] ),
FILTER (
ALLSELECTED ( 'Licences' ),
'licences'[start date] <= SELECTEDVALUE ( 'date'[date] )
&& 'licences'[expiry date] >= SELECTEDVALUE ( 'date'[date] )
)
)
Best Regards,
Jay
Hi @matthewwylie ,
Please refer this measure.
measure =
CALCULATE (
COUNT ( 'Licences'[licence number] ),
FILTER (
ALLSELECTED ( 'Licences' ),
'licences'[start date] <= SELECTEDVALUE ( 'date'[date] )
&& 'licences'[expiry date] >= SELECTEDVALUE ( 'date'[date] )
)
)
Best Regards,
Jay
@matthewwylie , seems like very similar to my HR blog
refer
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |