I am wondering about a simple logic. I got it working but I had it in multiple TABLE requests.
TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE HOLD AS H1
END
SET ASNAMES = ON
TABLE FILE H1
SUM
SALES AS 'TOP_SALES'
BY HIGHEST 1 SALES NOPRINT
BY COUNTRY
ON TABLE HOLD AS H2
END
JOIN
COUNTRY IN H1 TO
COUNTRY IN H2 AS J0
END
TABLE FILE H1
SUM
TOP_SALES NOPRINT
SALES NOPRINT
COMPUTE TOP_PRCNT/D12.2% = (TOP_SALES/SALES) * 100;
END
Just want to learn if it can be done in any other simple way. Please suggest. Thank you.This message has been edited. Last edited by: BI_Developer,
WF 8.2.01 APP STUDIO PDF,HTML,EXL2K,Active
September 23, 2019, 02:04 PM
MartinY
Not sure to understand exactly what you are looking to perform.
Please share your whole actual "working" multi requests solution. It may help to understand
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 23, 2019, 02:44 PM
Danny-SRL
Try this:
DEFINE FILE CAR
PSALES/D8.2=SALES;
END
TABLE FILE CAR
SUM SALES NOPRINT PCT.PSALES
BY TOTAL HIGHEST 1 SALES NOPRINT
BY COUNTRY NOPRINT
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
September 23, 2019, 02:46 PM
BI_Developer
Martin, edited my first post. Sorry for the confusion.
quote:
Originally posted by MartinY: Not sure to understand exactly what you are looking to perform.
Please share your whole actual "working" multi requests solution. It may help to understand
WF 8.2.01 APP STUDIO PDF,HTML,EXL2K,Active
September 23, 2019, 02:47 PM
BI_Developer
Danny, this is what I'm looking for. Thank you so much.
quote:
Originally posted by Danny-SRL: Try this:
DEFINE FILE CAR
PSALES/D8.2=SALES;
END
TABLE FILE CAR
SUM SALES NOPRINT PCT.PSALES
BY TOTAL HIGHEST 1 SALES NOPRINT
BY COUNTRY NOPRINT
END