Forum Discussion

Zoltan10's avatar
Zoltan10
New Member
4 years ago
Solved

Counting items within group

Hi All,

I stucked with a problem, so I need some help.

The situation is more complex, but I created some example for the situation.
Basically I would like to count the items within group like this:

 

In the real example the manufacturer is hidden, and the count must be calculated, because depends on the time dimension what I need to include.

How can I count the models for the rows?

Thank you for your help.

  • Zoltan10 hard to say exactly the function because not sure how you consume your report but try this: (I assume in your table each row represent a manufacturer/model)
    CALCULATE(COUNTROWS('Table'), REMOVEFILTERS('Table'), VALUES('Table'[Manufacturer]))





          
    Showcase Report – Contoso By SpartaBI

3 Replies

  • SpartaBI's avatar
    SpartaBI
    Community Champion

    Zoltan10 hard to say exactly the function because not sure how you consume your report but try this: (I assume in your table each row represent a manufacturer/model)
    CALCULATE(COUNTROWS('Table'), REMOVEFILTERS('Table'), VALUES('Table'[Manufacturer]))





          
    Showcase Report – Contoso By SpartaBI

  • SpartaBI thank you very much. It works, but I realized, I asked the wrong question 😞
    There are weights to the rows and I hoped the sum and count works the same.
    Anyway I hope I can move forward with this logic.