Article 35(1) of the UK GDPR says:
"Where a type of processing in particular using new technologies, and taking into account the nature, scope, context and purposes of the processing, is likely to result in a high risk to the rights and freedoms of natural persons, the controller shall, prior to the processing, carry out an assessment of the impact of the envisaged processing operations on the protection of personal data."
DPIAs are a key part of your accountability obligations under the UK GDPR, and when done properly can help you assess and demonstrate how you comply with all of your data protection obligations.
As data analytics is likely to be classed as an innovative technology and profile individuals on a large scale, if you use it to process personal data, then you must carry out a DPIA. In any case, if you have a major project that involves the use of personal data, it is good practice to do a DPIA.