Hi,
I referred to couple links https://community.powerbi.com/t5/Desktop/Calculate-open-tickets-at-the-end-of-the-month/m-p/311142/highlight/false#M137852
My requirement is the same.But i am doing this in the ssas tabuar model.I already have a role playing date dimenison in my model,hence i cannot use your solution where you create a calculated date table.
Pls provide a solution for tabular model where it could be acheived as a measure.
I have attached a sample data and expected output file.
So far,I was have been able to create 2 measure called EOMNEw(count of new tickets open each month) ,EOMClosed (count of closed tickets each month) and Open (subtract EOMNEw and EOMClosed).Open does not depict the correct numbers though,we need to compute Open using EOMNEw/EOMClosed.
EOMNEw =
CALCULATE (
DISTINCTCOUNT ( [ID] ),
FILTER (
Internal,
(
Internal[CloseDate] = BLANK ()
|| Internal[CloseDate] > EOMONTH ( [OpenDate], 0 )
)
&& Internal[OpenDate] <= MAX ( 'Date'[Date] )
)
)
EOMClosed =
CALCULATE (
DISTINCTCOUNT ( Internal[ID] ),
USERELATIONSHIP ( Internal[CloseDate], 'Date'[Date] )
)
Open =
CALCULATE (
DISTINCTCOUNT ( [id] ),
FILTER (
ALL ( Internal ),
(
Internal[CloseDate] = BLANK ()
|| Internal[CloseDate] > EOMONTH ( [OpenDate], 0 )
)
&& Internal[FirstDate] <= MAX ( 'Date'[Date] )
)
)
- CALCULATE (
DISTINCTCOUNT ( [id] ),
USERELATIONSHIP ( Internal[CloseDate], 'Date'[Date] )
)