TIBCO Spotfire Analyst 7.5 onwards, a new feature has been introduced which allows you to explicitly define a primary key when selecting the desired data table inside the data connection:
1) While making use of a custom query, define a primary key explicitly.
2) If the underlying data table does not have any predefined primary key, you can set the primary key inside the data connection window as per your requirement. Below is the screenshot for the reference: