Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
ajsjoshua
Specialist
Specialist

Text box and pivot table expressions

Hi all,

I am using this expression

=sum({<Year_UP = {$(=Max(Year_UP))},Week_UP = { $(=Max(Week_UP)-8) },Week = {$(=Max(Week_UP))}>}Orders)

which is working fine in text box but its not working in pivot table.

Regards,

Joshua.

25 Replies
vikasmahajan

What is a dimension , attached some sample qvw

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
avinashelite

Text box doesn't consider the dimension and its totally dependent on your selection , expression but in the Pivot table expression are totally dependent on the dimensions your using . check your pivot table dimensions once

ajsjoshua
Specialist
Specialist
Author

Hi PFA

ajsjoshua
Specialist
Specialist
Author

Hi avinashelitevikasmahajan

PFA .

I am getting wromg answers in pivot

avinashelite

could you please share the dimensions your using , currently i don't have the QV licence. You could share the snapshots of your dimension and expression 

ajsjoshua
Specialist
Specialist
Author

avinashelite

Are you using any accumulation in Pivot table??

ajsjoshua
Specialist
Specialist
Author

Hi avinashelite

No bro

er_mohit
Master II
Master II

Try this

=sum({<Year_UP = {$(=Max(Year_UP))},Week_UP = { $(=Max(Week_UP)-8) },Week = {"=$(=Max(Week_UP))"}>}Orders)