Hi
I have a DAX question for Powerpivot 2013.
I have a sales transaction table with licence start date and licence end date for each line of transaction.
My goal is to calculate active no of licence at daily basis. for example, when I place date from date dimension on Rows, it should display like
Date ActiveLicence Caculated by
Jan/2/2014 10
Jan/3/2014 10
Jan/4/2014 10
Jan/5/2014 12
Jan/6/2014 12
Jan/7/2014 11
and so on
Active licence should be calculated by
sum of licences from all the invoices with licence start date >= Date (from date dimension) and Licence end date <= Date
Is it possible to do this in DAX?
I have 3 date dimension: Invoice Date dimension, Licence Start date dimension, Licence End date Dimension with a sales fact table with the 3 dates and no licence purchased column.
Can anyone help me with this please?
- Edited by SQLMa 16 hours 42 minutes ago