Morning,
I have a table with a range of transactions for different products.
One of the columns is DateOfTransaction.
I'm trying to get the earliest transaction date for each product but what I'm actually getting is just the earliest transacton date overall.
I am expecting results to look like this:
Product Earliest Transaction Date
Shop Insurance 12/01/2012
Office Insurance 01/01/2012
Business Insurance 03/03/2012
However what i'm getting is:
Product Earliest Transaction Date
Shop Insurance 01/01/2012
Office Insurance 01/01/2012
Business Insurance 01/01/2012
The measure I'm using is as follows:
Earliest Product Trans Date:=calculate(MIN([DateOfTransaction]),[Product])
Any idea where I'm going wrong or what i need to do to fix it?
Thanks very much
Rob
I have a table with a range of transactions for different products.
One of the columns is DateOfTransaction.
I'm trying to get the earliest transaction date for each product but what I'm actually getting is just the earliest transacton date overall.
I am expecting results to look like this:
Product Earliest Transaction Date
Shop Insurance 12/01/2012
Office Insurance 01/01/2012
Business Insurance 03/03/2012
However what i'm getting is:
Product Earliest Transaction Date
Shop Insurance 01/01/2012
Office Insurance 01/01/2012
Business Insurance 01/01/2012
The measure I'm using is as follows:
Earliest Product Trans Date:=calculate(MIN([DateOfTransaction]),[Product])
Any idea where I'm going wrong or what i need to do to fix it?
Thanks very much
Rob