Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
samvile18
Creator III
Creator III

Help Required Please...

Hi fellow developers - I'm having an issue with some code (which I'm fairly sure, is fairly straightforward!) I just can't seem to get the syntax working!!

I have the following layout of data and I need to create a % pass against each measure:

samvile18_0-1694525593657.png

As you can see each metric has it's own total value - so the measures that align to Cyclops_Address need to use the total for Cyclops_Address...the measures that align to Cyclops_DOB need to use the total for that etc.

I'm using sum(total but that's totalling everything together and not the individual metric totals.

Can anyone out there help please as this one is driving me crazy!!

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

This is a really odd data structure - usually the total would be the sum of rows, not an individual row within the data.

You could probably make this work using something like:

Sum(Something) / Sum({< Measure = {'total'} >} Total <Metric> Something)

 

View solution in original post

2 Replies
Or
MVP
MVP

This is a really odd data structure - usually the total would be the sum of rows, not an individual row within the data.

You could probably make this work using something like:

Sum(Something) / Sum({< Measure = {'total'} >} Total <Metric> Something)

 

samvile18
Creator III
Creator III
Author

I completely agree - the layout is mental. For some reason they bring the failures in and then a total row to work against! Very odd, ok, I'll give it a go...thanks for the reply.