Forum

Making the column u...
 
Notifications
Clear all

Making the column unique for data discovery

5 Posts
2 Users
0 Reactions
69 Views
(@bluesky63)
Posts: 162
Estimable Member
Topic starter
 

Hi,

some of the source data display in the form (see attached first worksheet) that is not unique,  row 2 - X is actually the sub-records as the row 1 etc,  is there any way to use Power Query (hopefully less M coding) to transform into the unique columns (see 2nd woirksheet)

Of course we can use reference to duplicate a lot of queries and each one delete the bottom rows (before that got to find out the number of rows to delete),  that will be tedious if the tables are huge and consists a lot of sub tables within

Attached mockup I only put in two sub-tables

 

Thank you in advanced

 
Posted : 19/11/2019 2:24 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Chris,

Please see attached.

Mynda

 
Posted : 19/11/2019 4:23 am
(@bluesky63)
Posts: 162
Estimable Member
Topic starter
 

Hi Mynda ,  that was super fast,  thanks

is there any quick way to break all these sub-tables into different queries,  i.e.    Total Citizen one query,   Total Maie Citizen one query and so on

 
Posted : 19/11/2019 5:25 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Chris,

I'm not sure why you'd want to separate the data, but I'd be inclined to use PivotTables to extract the data (first add back the column that classifies the rows into Total Citizen etc.).

Otherwise, if you need it at the query level, then duplicate the query and apply a filter. Rinse and repeat for other sub-tables.

Mynda

 
Posted : 19/11/2019 7:04 am
(@bluesky63)
Posts: 162
Estimable Member
Topic starter
 

Hi Mynda,

ok thanks for your recommendation,  I would unpivot and import to Qlik Sense to visualize using QS filter

Thank you !

 
Posted : 19/11/2019 10:58 am
Share: