Skip to Content
avatar image
Former Member

Count dimension with filter on another count

Hi everyone.

I want to count the number of files which have a number of customer >=2 and have the total amount.

I've tried some formula with Sum, Count, with a variable but I can't have the result as I want.

My first column is a simple dimension [A]

My second Column is a calculated column is calculated Count[B]

My third is an indicator [C].

Someone know how to get the results of number of files >=2 and the total amount associated ?


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 08, 2018 at 09:24 AM

    Create Amount as dimension variable and then use like

    =Sum([V Amount]) where ([No of Customers]>=2) foreach ([ID Files])

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member AMIT KUMAR

      ID Customer is a dimension I used in the screenshot in the second column, it's Count(ID Customer) (Count[B]), each Files has 1 or more customer.

      I made a variable which execute If(Count(ID Customer)>=2;"True";"False").
      But each time I confirm the syntax, it converted it in Indicator (instead of Dimension) and I don't know why. And after, when i made a filter on "True", I have the line I want. But next, when I execute the code Count(ID Files), the result is the total of files, not only thus which have >=2 customers.