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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to use a join and then sort the data

   

NameStatusCity
Amit PrabhuMaharashtraThane
Narayan NihalaniMaharashtraThane
Rameez ShaikhMaharashtraMumbai
Deepak SoniMaharashtraMumbai
Muzammil AnsariMaharashtraMumbai
Sandeep PatwaMaharashtraMumbai

   

RegionCity
WestThane
WestMumbai
EastMumbai
SouthMumbai
NorthThane
NorthNashik

How can we join this tables using joins and then sort according to the Region.

eg. all city with thane should come together and then Mumbai and so on.

3 Replies
Anil_Babu_Samineni

What you want to see from UI. Can you let me know the expected to see

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
muthukumar77
Partner - Creator III
Partner - Creator III

Names:

LOAD * INLINE [

    Name, Status, City

    Amit Prabhu, Maharashtra, Thane

    Narayan Nihalani, Maharashtra, Thane

    Rameez Shaikh, Maharashtra, Mumbai

    Deepak Soni, Maharashtra, Mumbai

    Muzammil Ansari, Maharashtra, Mumbai

    Sandeep Patwa, Maharashtra, Mumbai

];

Left Join(Names)

LOAD * INLINE [

    Region, City

    West, Thane

    West, Mumbai

    East, Mumbai

    South, Mumbai

    North, Thane

    North, Nashik

];

NoConcatenate

Final:

LOAD Name,Status,City,Region Resident Names Order by Region asc;

DROP Table Names;

Can you ask like this?

Muthukumar Pandiyan
Not applicable
Author

  Table 1  

RegionCity
West ThWest  Thane
West MuWest  Mumbai
East MuEast  Mumbai
South MuSouth  Mumbai
North ThNorth  Thane
North NaNorth  Nashik
West NaWest  Nashik
East NaEast  Nashik
South NaSouth  Nashik
West NaWest  Nagpur
North NaNorth  Nagpur
West PuWest  Pune
East PuEast  Pune
South PuSouth  Pune
North MuNorth  Mumbai
South ThSouth  Thane
North PuNorth  Pune
East ThEast  Thane
West RaWest  Raigad
North RaNorth  Raigad
North AhNorth  Ahmedabad
West AhWest  Ahmedabad

  Table 2  

NameMobileStatusRegion
Amit Prabhu9820261173MaharashtraWest Th
Narayan Nihalani9324764624MaharashtraWest Mu
Rameez Shaikh9930038445MaharashtraEast Mu
Deepak Soni8080106009MaharashtraSouth Mu
Muzammil Ansari9892964447MaharashtraNorth Th
Sandeep Patwa9222337250MaharashtraNorth Na
Warish Hashmi9699446027MaharashtraWest Na
Sarfaraz Ansari8080220160MaharashtraEast Na
Somnath Birajdar9220588835MaharashtraSouth Na
Saish Wagle8983915333MaharashtraWest Na
Shaeque Khan9987700440MaharashtraNorth Na
Paresh Kawa9930583258MaharashtraWest Pu
Abdul Kayyum  Shaikh9920290489MaharashtraEast Pu
Sarfaraz Mirza9930884114MaharashtraSouth Pu
Abdul Aamir  Shaikh 9545778881MaharashtraNorth Mu
Jiten Gala7666555055MaharashtraSouth Th
Salman Imran Kadiwal9819852367MaharashtraNorth Pu
Rupesh Pawar9220360005MaharashtraEast Th
Chirag Tailor7738240256MaharashtraWest Ra
Mohmad Idris Akbar  Shaikh 9222999710MaharashtraNorth Ra
Ankesh  8898101766MaharashtraNorth Ah
Sagar Bhangare9260435066Maharashtra

West Ah

How can we join this tables using joins and then sort according to the Region.

eg.

NameMobileStatusRegionCity
Amit Prabhu9820261173MaharashtraWest Th

West Thane

Narayan Nihalani9324764624MaharashtraWest MuWest Mumbai
Rameez Shaikh9930038445MaharashtraEast MuEast Mumbai
Deepak Soni8080106009MaharashtraSouth MuSouth Mumbai

and so on

****  The City name should be sorted such that All west thane should be together, all West Mumbai should be together...