Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculated Dimensions

Hi Friends,

load Inlin [

Department,

if(wildmatch(Department,'Comp*','Mec*'),Department) as Dept1,

if(wildmatch(Department,'Elec*','IT'),Department) as Dept2

]

I created two Calculated Columns while I was loading the file. Dimensions are "Dept1,Dept2 ". Now my Problem is I want to show those Columns as Calculated Dimensions in a barchart. Is it Possible....?

In a bar chart 1st bar should be Dept1 and 2nd is Dept2.  can you please tell me how is this?

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Use this:

=if(wildmatch(Department,'Comp*','Mec*'), 'Dept1', if(wildmatch(Department,'Elec*','IT'), 'Dept2'))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use this:

=if(wildmatch(Department,'Comp*','Mec*'), 'Dept1', if(wildmatch(Department,'Elec*','IT'), 'Dept2'))

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

But I suggest that you add this as a derived field in your load script rather than using a calculated dimension.

LOAD

Department,
if(wildmatch(Department,'Comp*','Mec*'), 'Dept1', if(wildmatch(Department,'Elec*','IT'), 'Dept2')) As Dept,
...
Logic will get you from a to b. Imagination will take you everywhere. - A Einstein