Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Extra data with crosstable

Hi

I have Crosstable() that works fine :

/////////////////////////////////////////////////////////////////////////

DQD :

/////////////////////////////////////////////////////////////////////////

CrossTable( [Flag Name], [Value] ,1)

load

  [Flight ID] ,

  [First Bag Missing Data Flag]   as [First Bag Missing Data] ,

  [Last Bag Missing Data Flag] as [Last Bag Missing Data]

resident  Data.Quality

;

But............. there are some extra dimension fields in the Data.Quality table that I would like included in the DQD table.

Any suggestions how to do it without re-loading the DQD table ?

Best Regards,     Bill

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Put the extra fields in front of the fields that should be pivoted and increase the last parameter to the number of columns that shouldn't be modified

/////////////////////////////////////////////////////////////////////////

DQD :

/////////////////////////////////////////////////////////////////////////

CrossTable( [Flag Name], [Value] ,4)

load

  ExtraField1, ExtraField2, ExtraField3,

  [Flight ID] ,

  [First Bag Missing Data Flag]  as [First Bag Missing Data] ,

  [Last Bag Missing Data Flag] as [Last Bag Missing Data]

resident  Data.Quality


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
fred_s
Partner - Creator III
Partner - Creator III

Hi Bill,

What's wrong with reloading Data.Quality?
You're already loading from resident.

/////////////////////////////////////////////////////////////////////////
DQD :
/////////////////////////////////////////////////////////////////////////
CrossTable( [Flag Name], [Value] ,1)
load
  [Flight ID] ,
  [First Bag Missing Data Flag]   as [First Bag Missing Data] ,
  [Last Bag Missing Data Flag] as [Last Bag Missing Data]
resident  Data.Quality
;


left join
Load [Flight ID],
  ExtraDim1,
  ExtraDim2
resident  Data.Quality
;

Gysbert_Wassenaar

Put the extra fields in front of the fields that should be pivoted and increase the last parameter to the number of columns that shouldn't be modified

/////////////////////////////////////////////////////////////////////////

DQD :

/////////////////////////////////////////////////////////////////////////

CrossTable( [Flag Name], [Value] ,4)

load

  ExtraField1, ExtraField2, ExtraField3,

  [Flight ID] ,

  [First Bag Missing Data Flag]  as [First Bag Missing Data] ,

  [Last Bag Missing Data Flag] as [Last Bag Missing Data]

resident  Data.Quality


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

G

Brilliant - works perfectly.

I was wondering earlier what that third numeric parameter did, thanks to you I now know.

Many Thanks,     Bill