Forum Discussion
How to Identify Recurring Journal
Hi All
As part of GL analysis, i need to identify which journal entries are recurring in my data of journal transactions.
The source data is in this form -
| Description | Date | Amount |
| Journal1 | 01-01-2020 | 962 |
| Journal1 | 29-02-2020 | 509 |
| Journal1 | 31-03-2020 | 819 |
| Journal1 | 30-04-2020 | 152 |
| Journal1 | 31-05-2020 | 508 |
| Journal1 | 30-06-2020 | 773 |
| Journal1 | 31-07-2020 | 712 |
| Journal1 | 31-08-2020 | 799 |
| Journal1 | 30-09-2020 | 202 |
| Journal1 | 31-10-2020 | 391 |
| Journal2 | 01-01-2020 | 270 |
| Journal2 | 29-02-2020 | 270 |
| Journal2 | 31-03-2020 | 270 |
| Journal2 | 30-04-2020 | 270 |
| Journal2 | 31-05-2020 | 270 |
| Journal2 | 30-06-2020 | 270 |
| Journal2 | 31-07-2020 | 270 |
| Journal2 | 31-08-2020 | 270 |
| Journal2 | 30-09-2020 | 270 |
| Journal2 | 31-10-2020 | 270 |
| Journal3 | 01-01-2020 | 183 |
| Journal3 | 01-01-2020 | 754 |
| Journal3 | 01-01-2020 | 221 |
| Journal3 | 01-01-2020 | 934 |
| Journal3 | 01-01-2020 | 119 |
| Journal3 | 01-01-2020 | 168 |
| Journal3 | 01-01-2020 | 983 |
| Journal3 | 01-01-2020 | 454 |
| Journal3 | 01-01-2020 | 193 |
| Journal3 | 01-01-2020 | 309 |
I need to identify which journal is recurring in all periods basis the description. For example, all the 3 journals in above dataset are recurring in all months. However, only Journal 2 is recurring in all months with same amount which i need to identify through a measure.
Please suggest.
@Aashu2093 , Create a column as
Month-year - format([Date], "YYYYMM")then they have a measure like
countx(filter(summarize(Table, Table[Description], "_1", distinctcount(Table[Month-year]), "_2", calculate(distinctcount(Table[Month-year]), all(Table))),[_1]-[_2]),[Description])
2 Replies
- amitchandakSuper User
@Aashu2093 , Create a column as
Month-year - format([Date], "YYYYMM")then they have a measure like
countx(filter(summarize(Table, Table[Description], "_1", distinctcount(Table[Month-year]), "_2", calculate(distinctcount(Table[Month-year]), all(Table))),[_1]-[_2]),[Description])
- AllisonKennedyCommunity Champion
Anonymous Amitchandak's solution will only count how many distinct values, but not check if they are the same. You could expand on that method though and get there eventually I think.
Another option is to turn to power query, though I'm not sure how to make it dynamic and efficient. I find using a Left Anti join for Merge in Power Query to be a really good way to reconcile journals and two different tables. You could do this with your data by filtering for this month, creating another query and filter for last month, then merge. I'm not sure if that's what you want though? Amitchandak's DAX will be more dynamic if you can expand on it.