Forum Discussion
schoden
5 years agoPost Partisan
Continous Year
Hi Community, How can I check if a customer year of transaction is continous or not. In the table, the customer A is not continous as 2018 transaction is missed. I have calender table and c...
- 5 years ago
schoden , refer to page two of the attached file after Signature, I created a flag
amitchandak
5 years agoSuper User
schoden , Have a new column like this in you fact
Diff = [Year] - maxx(filter(Table,[customer] =earlier([customer]) && [Year] <earlier([Year])),[Year])
And then use a measure like
Measure = calculate(distinctcount(Table[Customer]) , filter(Table, Table[Diff]>1))
schoden
5 years agoPost Partisan
amitchandak I have Year from Calender table .
If the new column is created in fact table, Year gets red underlined.
How Can i refer year from calender table in the fact table.