on 03-11-2021 8:40 AM
Good afternoon:
I have two queries. on first, I have a values of fuel rate by second of many equipment. in second query, I have diferent ranges of time by equipment.
I want get sum of fuel rate between any range of time.
I merge variables Equipo1/Equipo2, and FECHA1/FECHA2. But I can´t compare date times, and calculate the sum. I tried with this formula but it don't works. appears message #INCOMPATIBLE:
sum fuel rate = sum ([fuel rate] where ( [tiempo]>[INICIO] and [tiempo]<[FIN])
please, could you help me?
thanks
Diego
Good morning Noel:
Thank you very much for your responce. But I can't get this sum , yet. I followed your instruction.I generated new two variables like detail variable, with the Equipo1/Equipo2 merged variable as associated dimension. after, I used your formula of sum, but appears message #CONTEXT.
Also I read TIP1 for the blog. Excellent info.
To comment the query 1 (Equipo 1, FECHA1,...) is from a excel file.
Also, I merged FECHA1/fecha2. and I get the same message #CONTEXT. (instead of 170)
I made this table with Equipo2/Equipo2; FECHA1/fECHA2; INICIO; FIN, SUM FUEL RATE
Please, could you know what more I do?
thank you
Diego
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would recommend creating detail variable with the merged parent of Equipo1/Equipo2 as the Associated dimension.
If find "Tip 1" this blog post helpful in explaining the reasoning as to why this approach is necessary.
Then use those variables in your sum fuel rate calculation...
=sum([fuel rate] where([tiempo]>[INICIO Detail Var]
and [tiempo]<[FIN Detail Var])
Does that work for you?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.