DateDimensionID | JobCloseDate | PolicyNumber | TermNumber | BranchID | Job | MostRecentModel |
1 | 7/1/2016 0:00 | A | 1 | 1 | Submission | 1 |
2 | 7/2/2016 0:00 | A | 1 | 2 | Policy Change | 1 |
2 | 7/2/2016 0:00 | B | 1 | 2 | Policy Change | 1 |
3 | 7/3/2016 0:00 | A | 1 | 3 | Cancellation | 0 |
3 | 7/3/2016 0:00 | B | 1 | 3 | Cancellation | 0 |
3 | 7/3/2016 1:00 | A | 1 | 4 | Reinstatement | 1 |
3 | 7/3/2016 1:00 | B | 1 | 4 | Reinstatement | 1 |
4 | 7/5/2016 0:00 | A | 1 | 5 | Cancellation | 1 |
Hi,
Above is the sample table I am working on. I looking to Calculate PolicyCount. It should count policies that has Previous Job type as Reinstatement
Example
JobcloseDate =7/5/2016 0:00 then it should show 1 policies (Which is Policy A because on 7/3/2016 it is reinstated)
I am not able to write exact measure to reflex this on Power BI Desktop.
Kindly help