Thank you so much for your kind offer, @Jon Peck, but I have tons of define ... !enddefine macros that would have to be converted. Plus, I am not proficient enough in Python. Maybe I should nevertheless teach this old dog the new tricks (I started using SPSS on a mainframe with punch cards ;) ) ...
------------------------------
Frank Furter
------------------------------
Original Message:
Sent: Sat February 10, 2024 09:45 AM
From: Jon Peck
Subject: GRAPH command: denominator for percentages
One solution would be to convert these macros into Python code, which can handle GGRAPH. I can't say whether that would be easy or hard without seeing the code, but I could take a look if you want to consider that.
--
Original Message:
Sent: 2/10/2024 5:52:00 AM
From: Frank Furter
Subject: RE: GRAPH command: denominator for percentages
Hi David,
thank you for your message - I am fully aware that this can be done in GGRAPH. The trouble is that I use quite a lot of SPSS macros (and I have a nice, little library) for repetitive tasks, and the GGRAPH does not run inside a DEFINE ... !ENDDEFINE structure. This is very unfortunate ...
------------------------------
Frank Furter
------------------------------
Original Message:
Sent: Fri February 09, 2024 12:51 PM
From: David Dwyer
Subject: GRAPH command: denominator for percentages
Hi @Frank Furter,
You are correct. The GRAPH command and the associated legacy graphs (Graph -> Bar) menus do not give you that level of granularity.
By contrast, the GGRAPH command and associated Chart Builder graphs (Graphs -> Chart Builder -> Bar) do give you a choice for the percentages reported.

The GRAPH command is giving you the third type of graph in that GGRAPH dropdown - "Total for Each Legend Variable Category (same fill color)"
I suspect what you want is one of the other two. Attached is output and the GGRAPH command that created it (I took the options for the denominator in order when I created these graphs).
I hope this helps,
------------------------------
David Dwyer
SPSS Technical Support
IBM Software