Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikviewwizard
Master II
Master II

Report format issue

Hi All,

I want to show for each EmpNo data in one row. But it is showing other value in two rows.

Please help me on this.

     

EmpNoDepartmentJobEnameSal
EmpNo1AccountingJobEname188613.7402
EmpNo1---7987263.336
EmpNo2AccountingJob1Ename22284687.758
EmpNo2---5690275.578
EmpNo3AccountingJob2Ename31049730.867
EmpNo4AccountingJob3Ename42888898.526
EmpNo5AccountingJob4Ename51618679.615
EmpNo6AccountingJob5Ename696066.57

Capture.JPG

1 Solution

Accepted Solutions
6 Replies
Not applicable

Hi,

Use aggr(sum(Sal),EmpNo) in expression.

Please find solution in attached QVW file.

Regards,

Uday.

MarcoWedel

Hi,

another solution could be to let the '-' values be null-values (if not already so) and include the Department, Job and Ename fields as expressions rather than dimensions in the straight table.

The expression for 'Sal' then would be simply:

=Sum(Sal)

QlikCommunity_Thread_166193_Pic1.JPG

QlikCommunity_Thread_166193_Pic2.JPG

SET NULLINTERPRET='-';

table1:

LOAD * INLINE [

    EmpNo, Department, Job, Ename, Sal

    EmpNo1, Accounting, Job, Ename1, 88613.7402

    EmpNo1, -, -, -, 7987263.336

    EmpNo2, Accounting, Job1, Ename2, 2284687.758

    EmpNo2, -, -, -, 5690275.578

    EmpNo3, Accounting, Job2, Ename3, 1049730.867

    EmpNo4, Accounting, Job3, Ename4, 2888898.526

    EmpNo5, Accounting, Job4, Ename5, 1618679.615

    EmpNo6, Accounting, Job5, Ename6, 96066.57

];

hope this helps

regards

Marco

pratap6699
Creator
Creator

use =aggr(sum(Sal),EmpNo) in expression.it is used like a group by function so both employee ID's should caliculate and display in one row

qlikviewwizard
Master II
Master II
Author

Hi MarcoWedel,

I have tried your solution. But Sal and Comm values are changing based on the selection of the Quarter filters.

jagan
Partner - Champion III
Partner - Champion III

Not applicable

Hi,

The solution to the above question is attached below.

Thanks & Regards.