Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Kunkulis
Creator
Creator

Straight table double dimension

Hi,

I have a Straight table with 3 columns. 2 dimensions and 1 Expression.

The columns I have are the department, the manager and the sum

Problem is that in the qvd file I might have empty cells, which leads to having two or more departments, where in the manager column I will see the manager and below it I will see an empty cell.

I tried adding the manager column as an expression dimension if(manager='','',manager), but it didn't help.

Any idea how this could be solved?  

Labels (3)
1 Solution

Accepted Solutions
Vengatesh
Partner - Creator
Partner - Creator

Add Manger as an Expression

You Know What To Do.

View solution in original post

7 Replies
albertovarela
Partner - Specialist
Partner - Specialist

What do you mean by empty cell? is that a blank, a space or a null?  this might lead you to use if(IsNull(Manager).... 

Can you post some sample data?  

Kunkulis
Creator
Creator
Author

I believe the cells are null/blank, because a formula if(Manager='','-',Manager) it does add the '-' in cells. 

In the attachment I made a small version of the issue.  Please keep in mind that the real issue is on a much bigger and more complex scale, the original app has tick boxes where you create the table, but the expressions are constant, so would be nice if the solution would come outside the expressions. Also in the big version there are multiple people columns which could be chosen and they also have null cells.

arpitkharkia
Creator III
Creator III

Assuming that for every department we have only one manager, i have created a file.

A left join is performed to get the manager names for blank values.

albertovarela
Partner - Specialist
Partner - Specialist

Based on the assumption that there is a 1:1 relationship between Department and Manager here is an alternative solution using  the ApplyMap function.

 

 

Kunkulis
Creator
Creator
Author

Thank you for your effort, but this solution won't do the trick. 
Is there a solution that wouldn't involve changes to script, but rather work in the straight table.

Because, if there is an empty cell in the *.qvd than it has to be null. 

Vengatesh
Partner - Creator
Partner - Creator

Add Manger as an Expression

You Know What To Do.
arpitkharkia
Creator III
Creator III

If you know all the managers for each department you can use the following dimension

=if(Department='A','Bob',
if(Department='B','Ben'))