Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
timanshu
Creator III
Creator III

Above Function with in Set Analysis

Hi all,

Can I write Above() function within set analysis?? If Yes then How?

Actually I want to limit dimensions in straight table based on the condition that, if a column value in a row is same as that in above row, I want to exclude the row.How to obtain this with expression?


Example :


Input:                                                                      

dateidvalue
01/05/201510219
01/06/201510325
01/07/201510548
01/08/201510565
01/09/20151064
01/10/201510738

Output should be :

                                

dateidvalue
01/05/201510219
01/06/201510325
01/07/201510548
01/09/20151064
01/10/201510738

Kindly Note:- Here value is the only expression.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

if(date=min(TOTAL <id> date), sum(value))

1.jpg

View solution in original post

8 Replies
Not applicable

Hi Timanshu,

I have managed to get the output as above but i didnt use the above function.

I just assigned '1'as flag to each record and then aggregated it by id.

then i created an expression which checks the value of aggregation....for the duplicate id field you will get aggr as null.

Also i created a calculated expression to show the date only for unique ids.

Attaching the qvw.

Hope it helps.:)

maxgro
MVP
MVP

if(date=min(TOTAL <id> date), sum(value))

1.jpg

MK_QSL
MVP
MVP

Create a Straight Table

Dimension

date

id

expression

=Aggr(Min(value),id)

MK_QSL
MVP
MVP

One more way to do it...

Create a Straight Table

Dimensions

1) Calculated Dimension

Aggr(MIN(date),id)

2) id

Expression

Min(value)

timanshu
Creator III
Creator III
Author

Thanks Shashi

Your Solution gives the same output, however I only need to do this work by changing expressions.

timanshu
Creator III
Creator III
Author

Thanks Massimo

It works.

timanshu
Creator III
Creator III
Author

Hi Manish,

Thanks for reply.

This actually gives me minimum value but It should show value that occurs First according to date.

MK_QSL
MVP
MVP

Then my 2nd solution should work.