Skip to main content
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
Partner - Champion
Partner - Champion

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.

View solution in original post

1 Reply
agigliotti
Partner - Champion
Partner - Champion

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.