I have a documents table being displayed in my report, then I added a slicer to filter these data using a date range. This is working as expected, but now I need to create a donut chart that should display the summarization.
I've created a calculated table using the SUMMARIZE function like this:
grouped_docs = SUMMARIZE(documents;documents[user_id];"DocCount"; COUNTROWS('documents'))
However, the slicer is ignored.
I also tried to create a measure with the following code:
DocCount = CALCULATE(GROUPBY(documents; documents[user_id]; "GroupByUser"; COUNTROWS(CURRENTGROUP())); ALLSELECTED('documents'))
But it says that that the GROUPBY needs to have aggregation functions on CURRENTGROUP.
My documents table structure is like this:
document_id (auto increment field)
scanDate
title
user_id
How can I get the count of documents grouped by user_id?