Forum Discussion
Create a new table based on date slicer
- 4 years ago
Hi Anonymous ,
I think you need to create a separate date table and then try the following formula:
M_ = CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( ALL ( 'Table' ), 'Table'[Date] <= MAX ( 'Table 2'[Date] ) && 'Table'[Date] >= MIN ( 'Table 2'[Date] ) && 'Table'[PersonID] = MAX ( 'Table'[PersonID] ) ) )Table 2 = CALENDAR("2022-01-01","2022-04-03")
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
if this is what you want:
you don't need any measure. You have only to add to your visual PersonID (Don't summarize) and again PersonID (Count).
if you need a measure :
If this post is useful to help you to solve your issue consider giving the post a thumbs up
and accepting it as a solution !
Sorry my mistake, I should have given you the full picture. In the end, I want to create a visualisation that shows me each group of count and how many people have that value - and this to update when you change the date filter. So looking at the original query and based on the date filter, I have two people with 2 counts, and one person with 1 count. Not the best example to use, but hope you can see what I am trying to achieve. Below chart is my desired output from this exercise.
I don't think the above solution would help, as I can't create a visualisation from a table visualisation.