Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

aggregating expressions based on different dimension

Hi,

I have data like below, where in Date, Status and CID are dimensions and remaining columns are expressions

DateStatusCIDFAMTTLAMTUNAN
21/3/2016ResolvedTA200TA-
21/3/2016ResolvedDA003-DA
21/3/2016ResolvedRA004-RA
21/3/2016AcknowledgedA000A-
21/3/2016NewU500U-
21/3/2016NewA2610A-

But I need to move  2nd and 3rd row up and show as below

      

      

DateStatus FAMTTLAMTUNAN
21/03/2016Resolved 203TADA
21/03/2016Resolved 004-RA
21/03/2016Acknowledged 000A-
21/03/2016New 500U-
21/03/2016New 2610A-

But if I remove CID, 1st and 2nd row gets combined and I get 7 in 1st row and AN becomes empty.

9 Replies
Not applicable
Author

Hi raj,

Upload qvw with small dataset.

Not applicable
Author

Hi Lok,

PFA sample excel and qvw.

Name2, Name3 and Name4 should come in the same row as below -

Please note that there is no rule that Name 2, Name 3 and Name 4 will have equal number of entries. It is very much possible that Name2 has U1, U2 and Name3 has A1, A2 and A3 - in this scenario row corresponding to A3 should have blank value in Name2 and Name3.

 

DateName1Amt1StatusName2Name3Name4sum(Amt2)sum(Amt3)sum(Amt4)
21/03/2016P15NewU1U1A110.52
21/03/2016P15NewU2U2A221.52
varshavig12
Specialist
Specialist

What is the logic behind adding only TA and DA , not RA  ?

Not applicable
Author

Hi Varsha,

There is no relation between TA, DA and RA.

TA is related to FAMT and DA and RA are related to LAMT.

Thanks

Rajani

varshavig12
Specialist
Specialist

Hi Rajani,

Can you please tell me ,

How you got this,

I'm finding it difficult to understand.

Not applicable
Author

Hi Varsha,

I have added sample excel and QVW above with different column names to ease my question.

Can you please refer to the excel sheet attached above.

Thanks

Not applicable
Author

Hi Varsha,

Apologies was in the middle of something so asked you to check the attached sheets.

Date and Status are dimensions here, AN and UN will hold names of the people to whom amounts are being paid based on different features - for example if feature is ABC, AN and LAMT will have values and if feature is CDE, UN and FAMT will have values.

I have removed feature from the table here because I want to show AN and UN data in the same row, adding feature as dimension will make them appear in different rows. But even after removing feature and converting AN and UN into expressions, I didn't get correct results.

varshavig12
Specialist
Specialist

I'm using P.E. so I cannot open your qvw.

Your attached excel sheet has no LAMT, FAMT, AN or something.

I guess now you are giving me the explanation for the earlier sample data.

Assuming the same, do you mean that your feature ABC in explanation = CID in the data ?

varshavig12
Specialist
Specialist