Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
danielrogra
Creator
Creator

Measure by dimension

Hi all

I'm facing the following issue: I have a table with 3 kinds of information

TotalTypeType2
1

A

A.1
2AA.2
1B
3B
1C
6C

and I'm trying to build the following pivot table:

sum (Total) where type=Asum (Total) where type=Bsum (Total) where type=C
A.1

1

47
A.2247

Is there a way to do that?

Thanks in advance

Regards

1 Solution

Accepted Solutions
rubenmarin

Hi Daniel, as Type2 is not related to all records you can use TOTAL qualifier to avoid dimension values, and apply set analysis to filter by Type.

Using Type2 as dimension and 3 expressions/metrics:

- Sum({<Type={'A'}>} Total)

- Sum(TOTAL {<Type={'B'}>} Total)

- Sum(TOTAL {<Type={'C'}>} Total)


Naming a field 'Total' can make diffficult to different the qualifier TOTAL and the field Name.

View solution in original post

1 Reply
rubenmarin

Hi Daniel, as Type2 is not related to all records you can use TOTAL qualifier to avoid dimension values, and apply set analysis to filter by Type.

Using Type2 as dimension and 3 expressions/metrics:

- Sum({<Type={'A'}>} Total)

- Sum(TOTAL {<Type={'B'}>} Total)

- Sum(TOTAL {<Type={'C'}>} Total)


Naming a field 'Total' can make diffficult to different the qualifier TOTAL and the field Name.