Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to aggregate in Calculation View, but still output detail field

$
0
0

The scenario is this:

 

We are joining several data sets and one has a many:many relationship. To resolve this, we will look for the oldest record. I'm able to get this to work just fine with one minor wrinkle: I still need to display the detail fields that get removed in the aggregation process in the calculation view.

 

Sample Data:

  

MaterialCaseDate
XXX12320130228
XXX45620130217
XXX78920130303

 

CustomerMaterialQuantity
ABCXXX100
DEFYYY75

 

I'm joining the material table to the transaction data, but need to pull only the oldest record. The trick is that I need to also show the case # on the oldest record. In the calculation view, if I include Case in the output, then the date field doesn't aggregate. If I remove the Case field, then it aggregates perfectly, but I'm no longer able to display case "456" in the final result set.

 

Anyone know of another technique that will work?


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>