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: 
Not applicable

Cross join not working in accesspoint.

The below tables are cross joined

YesNo:

LOAD * INLINE [

    Y/N

    Y

    N

];

Mydata:

LOAD * INLINE [

    Exception Flag

    Y

    Y

    Y

    Y

    Y

    N

    N

    N

];

I have created a chart with fields Y/N and Exception Flag as dimensions. Created a single expression like this.

= SUM(if([Exception Flag] = [Y/N],1,0))

The chart appears like this below in my local.

  

Y/NException Flag= SUM(if([Exception Flag] = [Y/N],1,0))
8
NN3
YY5

When i check the same report through accesspoint, the below output is generated.

  

Y/NException Flag= SUM(if([Exception Flag] =[Y/N],1,0))
15
NY5
YY5
-Y5

But I am expecting a data like i see in my local.

Thanks in advance

1 Reply
swuehl
MVP
MVP

Could you upload your sample QVW that demonstrates your issue?

Note that your tables are not cross joined in the load script, you are creating two unlinked tables.

You would need to add a JOIN prefix to really join the tables:

YesNo:

LOAD * INLINE [

    Y/N

    Y

    N

];

Mydata:

JOIN (YesNo)

LOAD * INLINE [

    Exception Flag

    Y

    Y

    Y

    Y

    Y

    N

    N

    N

];

If you are not joining the tables in the script, there will be an implicite cross join when QlikView calculates the record set for the aggregation

=SUM(if([Exception Flag] = [Y/N],1,0))