Set one .agg file as default

50 views
Skip to first unread message

Beatriz Diaz Pauli

unread,
Mar 13, 2025, 6:23:52 AMMar 13
to pcaxis
Hi, 

I was wondering how one can modify the "Select classification" dropdown menu. 


Instead of having as default "Select classification", how can I set one aggregation file by default, as in the example here "Totalindeks" as in the screenshot (taken from https://www.ssb.no/statbank/table/03013).  


Thank you very much :)


BeatrizSkjermbilde 2025-03-13 112054.png

Hans Baumgartner

unread,
Mar 14, 2025, 3:21:53 AMMar 14
to pca...@googlegroups.com

Hi,

Are you using a Px-file based or a database based (Nordic database model) PxWeb?
They differ …

Hans

 

Lähettäjä: pca...@googlegroups.com <pca...@googlegroups.com> Puolesta Beatriz Diaz Pauli
Lähetetty: torstai 13. maaliskuuta 2025 12.24
Vastaanottaja: pcaxis <pca...@googlegroups.com>
Aihe: Set one .agg file as default

 

Hi, 

 

Beatriz

--
You received this message because you are subscribed to the Google Groups "pcaxis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcaxis+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pcaxis/93a3aa0b-1a93-48ab-acf0-45accdf0521fn%40googlegroups.com.

Hans Baumgartner

unread,
Mar 14, 2025, 4:04:04 AMMar 14
to pca...@googlegroups.com

Hi,

If i go with the title “
Set one .agg file as default” . Only the px-file based PxWeb databases use .agg files.

There is no way to make the file based px-web look like the database based px-web selection box default.

I suggest you add:
                             ELIMINATION("Sex")="Sex total";

This way if you don’t select anything from Sex you always get “Sex total”, but the variable is
eliminated because it is obvious (of course because it is a classificatory variable and an obvious total).
This can also be seen in the retrieved px-file. In the automatically generated TITLE=.
Population 31.12. by Year, Sex, Age and Information. PxWeb    (just an example)
In the file based PxWeb the full classification in the px-file will always be visible by default.

To make the agg and vs files use PxWin. There is a tutorial on this with the PxWin
documentation on SCB’s site.

https://www.scb.se/en/services/statistical-programs-for-px-files/install-px-win/

Also understand that the way the px, vs and the agg files are linked
Keyword DOMAIN in pxfile -> DOMAIN in vs-file -> filename .vs -file
https://pxweb2.stat.fi/aggregation.doc



Hans

 

Lähettäjä: pca...@googlegroups.com <pca...@googlegroups.com> Puolesta Hans Baumgartner
Lähetetty: perjantai 14. maaliskuuta 2025 9.22
Vastaanottaja: pca...@googlegroups.com
Aihe: VS: Set one .agg file as default

 

Hi,

Are you using a Px-file based or a database based (Nordic database model) PxWeb?
They differ …

Hans

 

Lähettäjä: pca...@googlegroups.com <pca...@googlegroups.com> Puolesta Beatriz Diaz Pauli
Lähetetty: torstai 13. maaliskuuta 2025 12.24
Vastaanottaja: pcaxis <pca...@googlegroups.com>
Aihe: Set one .agg file as default

 

Hi, 

 

I was wondering how one can modify the "Select classification" dropdown menu. 

 

Instead of having as default "Select classification", how can I set one aggregation file by default, as in the example here "Totalindeks" as in the screenshot (taken from https://www.ssb.no/statbank/table/03013).  

 

Thank you very much :)

 

Beatriz

--
You received this message because you are subscribed to the Google Groups "pcaxis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcaxis+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pcaxis/93a3aa0b-1a93-48ab-acf0-45accdf0521fn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "pcaxis" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcaxis+un...@googlegroups.com.

Hans Baumgartner

unread,
Mar 14, 2025, 4:30:19 AMMar 14
to pca...@googlegroups.com

I just want to correct this:

Also understand that the way the px, vs and the agg files are linked


Keyword DOMAIN in pxfile -> DOMAIN in .vs-file -> filename .AGG -file


Hans

Lähettäjä: Hans Baumgartner
Lähetetty: perjantai 14. maaliskuuta 2025 10.04

Message has been deleted
Message has been deleted
Message has been deleted

Beatriz Diaz Pauli

unread,
Mar 21, 2025, 2:26:30 AMMar 21
to pcaxis
Thanks Hans!

And sorry for not being specific, yes I'm using -px, .vs, and .agg files. I manage to make them work properly.

I am using the classification to group Norwegian municipalities into counties, and I would like the default to be the 2024 structure, as in https://www.ssb.no/statbank/table/06913/

What you suggested with  ELIMINATION("Sex")="Sex total";  would mean that by default I could choose one municipality, or a country total if I create that level within municipality.

So in the file based PxWeb, there is no way to overrule the default "Select classification" showing the full classification?

Thanks for the clarification.

Beatriz

Reply all
Reply to author
Forward
0 new messages