Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

Case 295 How to Make Count by Company_Name display as 3 when i select Dim and Expression = Coy Name?

Hi All

I have This Visualization :-

paulyeo11_0-1599906864352.png

 

Below Expresion working fine :-

=pick(Match([Pls select 51st Dim],
'E-Mail_List',
'SALES',
'Company_Name'
),
count(DISTINCT $(ColumnDim51)),
sum($(ColumnDim51)
)
)

I have diffcuilty adding one more expression after sum($(ColumnDim51)

I need to Add one more Expression , when user select Expression = Company_Name
and the Table 2 Display Count of 3

May i know how to do moddify the above expression ?

Paul

1 Solution

Accepted Solutions
edwin
Master II
Master II

if i get your data model correctly, you are missing the value for field COLUMN51 for company name.  this is your script:
WhatIfDimension:
LOAD * INLINE [
Pls select 51st Dim,Column51

SALES,Total_Sales
E-Mail_List,E-Mail_List
Company_Name    <-missing value here - shouldnt there be a value for CompanyName?
];

then to answer your question, you just add a new expression in your picklist:

=pick(Match([Pls select 51st Dim],
'E-Mail_List',
'SALES',
'Company_Name'
),
count(DISTINCT $(ColumnDim51)),
sum($(ColumnDim51)),
sum($(ColumnDim51)<- add your 3rd exp here
)

View solution in original post

1 Reply
edwin
Master II
Master II

if i get your data model correctly, you are missing the value for field COLUMN51 for company name.  this is your script:
WhatIfDimension:
LOAD * INLINE [
Pls select 51st Dim,Column51

SALES,Total_Sales
E-Mail_List,E-Mail_List
Company_Name    <-missing value here - shouldnt there be a value for CompanyName?
];

then to answer your question, you just add a new expression in your picklist:

=pick(Match([Pls select 51st Dim],
'E-Mail_List',
'SALES',
'Company_Name'
),
count(DISTINCT $(ColumnDim51)),
sum($(ColumnDim51)),
sum($(ColumnDim51)<- add your 3rd exp here
)