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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
vkish16161
Creator III
Creator III

Set Analysis Date Match (Tricky Question)

All,

How do I make measure1 work like measure2 using set analysis?

 

Capture.JPG

1 Solution

Accepted Solutions
agigliotti
MVP
MVP

maybe this:

load *,
recno() as recordNumber;
LOAD * INLINE [
Date1, Date2, Sale
1/1/2020, 1/1/2020, 100
1/1/2020, 1/2/2020, 200
];

=sum( {< recordNumber = {"=Date1 = Date2"} >} Sale )

I added the field "recordNumber" because you need a primay key.

I hope it can helps.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

1 Reply
agigliotti
MVP
MVP

maybe this:

load *,
recno() as recordNumber;
LOAD * INLINE [
Date1, Date2, Sale
1/1/2020, 1/1/2020, 100
1/1/2020, 1/2/2020, 200
];

=sum( {< recordNumber = {"=Date1 = Date2"} >} Sale )

I added the field "recordNumber" because you need a primay key.

I hope it can helps.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it