Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
cafcptg2011
Creator
Creator

convert straight table into pivot table expression fails

Hi,

I have straight table and i need to convert into a pivot table. (i need to know the stores/client that has sales only in a Stores Date)...

my table (and is correct):

1.PNG

when i convert to pivot table (pivot table doesn't show nothing ?!). my expression fails. why??

2.PNG

my Dimensions:

    Store and Client

my current expression is :

    if(SalesDate = StoreDate, count(Distinct Client))

my qvw is here http://community.qlik.com/servlet/JiveServlet/downloadBody/7912-102-1-10700/TesteOnly.qvw

Can anyone help me please?

thanks in advance,

CAFC

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You have the if() and count() reversed. Your expression should be:

=count(Distinct if(SalesDate = StoreDate, Client))

-Rob

View solution in original post

4 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You have the if() and count() reversed. Your expression should be:

=count(Distinct if(SalesDate = StoreDate, Client))

-Rob

avinashelite

Nothing wrong with the expression, in the presentation tab check the always fully expanded it will work

cafcptg2011
Creator
Creator
Author

thanks is correct!

thanks very much

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

A "correct" chart  expression -- that is, using aggregation -- should work expanded or not. See

Conditional Aggregations

Use Aggregation Functions!

-Rob