Hi β@OGordon100 ,
Thank you for your suggestion! However, I think there might have been a misunderstanding of the concept I was aiming for. Iβve managed to implement a solution according to my requirements, as I needed to mark queries as unique or matching. So hereβs what I did:
Create a Sequence Column:
I used the following logic to create a sequence number for each query in an incremental order (and 0 for blank rows):
iif(
Query is not null, sequence(0) div 3 + 1, 0
)
Example :
Query | Seq |
---|
CASE WHEN COLUMN_1 IS NULL OR TRIM(COLUMN_1) = '' THEN 0 | 1 |
---|
WHEN COLUMN_1 IS NOT NULL AND TRIM(COLUMN_1) != '' THEN 1 | 1 |
---|
ELSE 2 END as COLUMN_1_Completeness | 1 |
---|
| 0 |
---|
Combine Queries:
After creating the sequence column, I used a representative creator to concatenate these queries into a single line, taking Seq as the grouping strategy.
Mark Matching Queries:
Using a matching step on the Query column, I identified whether the queries were similar or not.
This approach allowed me to achieve the desired result.
Best regards,
Dhaval