<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>4 Jun 2017 21:32:51 Z</lastBuildDate><pubDate>4 Jun 2017 21:32:51 Z</pubDate><description>Hi,&#13;
I need to: &#13;
1. Get some rows that are between the given dates&#13;
2. Calculate SUM on two columns with GROUP BY&#13;
3. Subtract these sums and put the result in a new column&#13;
&#13;
It seems that I need 3 queries taking data from one another, in a row when I want to use query editor:&#13;
A. Query1: select rows between the dates&#13;
B. Query2: do the sums&#13;
C. Query3: select the sums and make a formula using sums&#13;
But I couldn't make query from query from a query work. Only query from a query is possible.&#13;
&#13;
Any suggestions how to go around it in the query editor ?&#13;
Thanks in advance&#13;
/Jacek</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/61136-problem-with-aggregate-functions-and-formula-query-editor/read.awp</link><title>Problem with aggregate functions and formula in the query editor (WinDev14)</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster></channel></rss>
