Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to use the variable in the calculated field. I need the Distinct count result based on ID and Data like table
ID | Name | Data | Distinct Count(ID,Name) |
1 | A | KPI | 2 |
1 | A | KPI | 2 |
1 | A | RI | 3 |
1 | A | RI | 3 |
1 | A | RI | 3 |
2 | B | SP | 1 |
2 | B | TS | 1 |
Use Left Join
Left Join (TableName)
LOAD ID,
Name,
Data,
Count(ID) as Count
Resident TableName
Group By ID, Name, Data;
If you only have ID, Name, and Data as dimension, Count(ID) should be enough... but if you have more dimensions, may be this Count(TOTAL <ID, Name, Data> ID)
It is the input table with three columns ID, Name and Data. I need to create a new column with count of ID based on the same data
@kppiee Are you using QlikView or Qlik Sense? I would like to move this into the correct product forum. Thank you.
QlikSense
You want to do that in the script?
Yes, if it possible from script
Use Left Join
Left Join (TableName)
LOAD ID,
Name,
Data,
Count(ID) as Count
Resident TableName
Group By ID, Name, Data;
if I reload the data than the calculated field will remain or delete?
It will remain as long as the Left Join exists 🙂