Hi,
I need to loop through my data set with a java snippet and create a MeasureValue column.
For example, my data looks like this
PodcastNumber,Location,Group,Metric
1,STL,1,M1
1,STL,0,M1
1,DAL,1,M1
1,DAL,0,M1
1,STL,1,M2
1,STL,0,M2
1,DAL,1,M2
1,DAL,0,M2
2,STL,1,M1
2,STL,0,M1
2,DAL,1,M1
2,DAL,0,M1
2,STL,1,M2
2,STL,0,M2
2,DAL,1,M2
2,DAL,0,M2
…
I need to derive a metric value for each podcast for each location for each group, and for each metric.
Something like this…
Let X = 1;
For (Podcast X in Podcasts)
For (Location X in Locations)
For (Group X in Group)
IF Metric = M1 THEN Value1 ELSE Value 2
Can somebody please help me with this?