I am trying to add a visual to show the last 12 month distinct counts for each month in the dataset. Windowsum is not working for me, as it is summing up the distinct counts for the last 12 months. I want to get the distinct count on the last 12 months data, rather than summing the distinct counts for each month in the last 12 months. It is related to the below post and author mentioned that they are able to implement the workaround. Can someone help me on how to achieve it?