Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot Chart Expression using RowNo()

Can some please take a look at my second Pivot Chart and help me understand why I am getting value only for 1 value of the dimension?

Labels (1)
3 Replies
Anil_Babu_Samineni
MVP
MVP

This is you are expecting to see?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hi Anil,

No! my expectation is to see value for each row and column intersection. Similar to what I have in Pivot 1

Thanks for your help.

rubenmarin
MVP
MVP

Hi, the $-expansion is done before the table is calculated, so the RowNo() in set analysis won't work as expected, it returns '1' (for all rows), so only sums v1.

Something as this can work but with this sample, I don't know if it's suitable in real data:

pick(RowNo(),

sum(total{<Venue={'v1'}>} Value),

sum(total{<Venue={'v2'}>} Value),

sum(total{<Venue={'v3'}>} Value),

sum(total{<Venue={'v4'}>} Value)

) + pick(ColumnNo(), // or should be '*' or any other operation?

sum(total{<Venue={'v1'}>} Value),

sum(total{<Venue={'v2'}>} Value),

sum(total{<Venue={'v3'}>} Value),

sum(total{<Venue={'v4'}>} Value)

)