Focal Point
[Solved] ACROSS using COLUMNS on a chart

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6067019486

December 15, 2016, 12:19 PM
Mike in DeLand
[Solved] ACROSS using COLUMNS on a chart
Hi,
I'm trying to do a graph that shows year-to-date totals for each month. I have
SUM themoneyfield
BY thedimensionfield
ACROSS themonthfield COLUMNS 1 AND 2 AND 3...

The dimension field could be something like "cash" or "credit" - I get a vertical stacked bar with some of each value.

I want to show all 12 months, but it will not show "future" months. It works fine in a REPORT, but not for GRAPH. I'm already using a 'driver' table that has all 12 months in it, using a left outer join to my table with the money fields in it. As I said, replacing GRAPH with TABLE makes all 12 months appear.

Any ideas?

This message has been edited. Last edited by: Mike in DeLand,


Webfocus 8
Windows, Linux
December 15, 2016, 01:02 PM
Francis Mariani
It seems to work in a simple graph:

GRAPH FILE CAR
SUM
SALES
ACROSS SEATS COLUMNS 1 AND 2 AND 3 AND 4 AND 5 AND 6 AND 7 AND 14
END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 15, 2016, 01:09 PM
Mike in DeLand
I have a BY and an ACROSS. I wonder what the catch is.


Webfocus 8
Windows, Linux
December 15, 2016, 01:22 PM
Francis Mariani
Oops, I didn't take the BY into account. Still works though...

GRAPH FILE CAR
SUM
SALES
BY COUNTRY
ACROSS SEATS COLUMNS 1 AND 2 AND 3 AND 4 AND 5 AND 6 AND 7 AND 14
ON GRAPH SET GRMERGE ON
END

I would comment out all the graph styling. If you see all the columns you're expecting, start adding the graph styling one line at a time...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 15, 2016, 01:28 PM
Mike in DeLand
Will give it a shot, thanks.


Webfocus 8
Windows, Linux
December 15, 2016, 02:17 PM
Mike in DeLand
No help with removing the styling. I ended up creating a dummy record with the month equal to 12 and included that in my dataset. Then it showed all the months up to and including 12.


Webfocus 8
Windows, Linux