Add Distinct count of rows to a pivot

I have the following data set:
image

I need to create a pivot that looks like that:
image

In QS I can’t add a distinct count of responses (so, how many responses were there per each Store - or row, if drilling down). I tried calculating distinct count of responses, but it is only accepted in Values shelf:
image

Can this case be solved?

Dashboard is here, but I couldn’t share it? (clicking on Permissions does nothing)

Hi @Filo ,

do I get you right? You want a pivot table in the following form:
image

First I tried the following:
Main issue is, that D count Repsonse ID must be stored in the rows. But this is not possible for measure values. Converting to a dimension is possible by using the “toString” function, but then we have a custom aggregation. Custom aggregations are permitted to add to rows.

Only solution I found is to create two tables, the first shows your D count Response Id field, the second shows your pivot with the measures. Not the solution I wanted to present but one that works.

Best regards,
Nico

Hi @Filo,

This answer is separated from my first one, because it concerns another topic.

I did not understand your topic with sharing the dashboard.

Did you follow this instruction?

Best regards,
Nico

Thanks for responding!

That’s right, I see no way to have this in one table in QS - sad!

And the dashboard is here → KPI for aggregated values - #3 by Filo

But I couldn’t share it, clicking on share → permissions does nothing?

Hi @Filo ,

regarding sharing your analysis.

Before you click on share, the analysis needs to be published as a dasbhoard.
Therefore click on “Publish” in the right upper corner.
image

After that you click on the “share” icon on the left side:
image

Now you can switch from OFF to ON. (You need to confirm the Grant public access dialog box.
After that you can click on “Copy link” to receive your shareable link.

Best Regards
Nico