Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Everyone,
I am having an issue with aggregation in a chart (or at least that's what I think the problem is). I have simplified the dataset to the following - each line representing a production "load".
StartTime | Part |
1:00 | A |
1:00 | B |
1:00 | C |
1:30 | A |
2:00 | D |
2:30 | B |
3:00 | B |
The problem is with the first three lines, which form 1 "combined load". How can I make a chart using Part as the dimension that will sum up the "loads", but taking into consideration that the first 3 lines only represent 0.33... of a load. i.e. the graph would show A=1.3333, B=2.3333, C=0.33333 and D=1.
I have tried various forms of set analysis and aggregration, but nothing I've come up with fits the bill. What I've been trying to do is - for each line, 1/Total Lines with the same start time. I just don't know what/if any language there is for that.
Any help is greatly appreciated.
Shawn
Try this
Create a straight table with dimension Part and as expression
=sum(aggr(nodistinct 1.0/count(distinct Part),StartTime))
Try this
Create a straight table with dimension Part and as expression
=sum(aggr(nodistinct 1.0/count(distinct Part),StartTime))
Works perfectly. Thank you!!!