cancel
Showing results for 
Search instead for 
Did you mean: 

Count dimension with filter on another count

Former Member
0 Kudos

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 ?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

amitrathi239
Active Contributor
0 Kudos

Create Amount as dimension variable and then use like

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

Former Member
0 Kudos

I've tried, but it's doing #MULTIVALUE with this formula

amitrathi239
Active Contributor
0 Kudos

try with adding dimension object in foreach which you have used to calculate "number of customers"

Former Member
0 Kudos

I tried but this time I've blank cell (no result).

The formula I've made is
= Sum([V Amount]) where (Count([ID Customer])>=2) foreach ([ID Customer]) and there is no result.

Former Member
0 Kudos

Wrong formula before, but this doesn't work also
= Sum([V Amount]) where (Count([ID Customer])>=2) foreach ([ID Files]) and there is no result.

amitrathi239
Active Contributor
0 Kudos

what is ID Customer.it's not there in the screenshot..if you can update the screenshot with all object available then i can try my side and let you know the solution.

Former Member
0 Kudos

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.