Forum Discussion
Counting accumulated lines
Hello,
the ABC analysis shows the summed turnover per customer group.
These can change through different filters.
I would now like to count how many rows A, B or C are displayed.
So in this case
A = 2
B = 3
C = 4
The values A, B and C were previously determined in a measure.
No matter what I have tried with COUNT, everything in the table is counted, but not the displayed rows.
Does anyone have a tip?
Best regards
Volker
8 Replies
- NiemeyerRegular Visitor
Perfect, thank you very much 🙂
- tamerj1
Community Champion
Hi Niemeyer
Create a disconnected table (let's call it ABC) which contains the 3 values A, B, & C in a single column. Place the column in a table visual along with the following measureCount = SUMX ( VALUES ( 'Table'[Kundengruppe / Kunde] ), INT ( [Umsatz ABC] = SELECTEDVALUE ( ABC[Value] ) ) )- NiemeyerRegular Visitor
Thanks for the suggestion, here is the result.
All rows of the source table are counted as C?
We were already that far 😉
Please note that it is not the source table that is counted but the displayed, grouped, summed and filtered visual.