on 12-09-2013 10:39 AM
Hi,
this is my formula,showing zero values,actual customer count is 41
=Count([v_Customerkey]Where([CY MTD Bud Val]>0 And [Main Query].[Business Line]="HPC" And [L01 Industry Code 1]="Chem-Applicators" Or [L01 Industry Code 1]="Chem-Fabricator")ForEach([v_Customerkey]))
in this above formula Customer key detail object, Created dimension variable (i.e) [v_Customerkey]
[v_Customerkey]
=[L01 Customer Key]
plz help me..plz find the attached snap shot
Hi,
first i have filter the customer using following formula,,
V_Apcat & fabricat Cust
=[L01 Customer Key]Where( [Main Query].[Business Line]="HPC" And [L01 Industry Code1]="Chem-Applicators" Or
[L01 Industry Code 1]="Chem-Fabricator")
again i took count of customer with following condition,this is giving correct count
=Count([V_Apcat & fabricat Cust] Where([CY MTD Bud Val]>0))
thank you, for all your quick response..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
maybe try something like:
create dimension:
COUNT_DIM = if([CY MTD Bud Val]>0 And [Main Query].[Business Line]="HPC" And
([L01 Industry Code 1]="Chem-Applicators" Or [L01 Industry Code 1]="Chem-Fabricator")) then 1 else 0
create measure:
COUNT = Count([v_Customerkey]Where( [COUNT_DIM] = 1 )
otherwise I would try to start first only with "where ([CY MTD Bud Val]>0)" and add one restriction by one to see when it becomes zero.
HTH,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try the formula below ... You are also missing a Parenthesis for the Or in your formula
Also looks like you are counting and showing in a single cell so you would not need ForEach([v_Customerkey]))
=Count([v_Customerkey]Where([CY MTD Bud Val]>0 And [Main Query].[Business Line]="HPC" And ( [L01 Industry Code 1]="Chem-Applicators" Or [L01 Industry Code 1]="Chem-Fabricator")) in Report
Hi,
It Should be ForAll
=Count([v_Customerkey]Where([CY MTD Bud Val]>0 And [Main Query].[Business Line]="HPC" And [L01 Industry Code 1]="Chem-Applicators" Or [L01 Industry Code 1]="Chem-Fabricator")ForAll([v_Customerkey]))
Thanks,
Kirthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.