WB income regions returns "Not applicable" & "Not included"

Bug #497760 reported by Jessica
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Global Health Observatory
Fix Committed
Low
moores

Bug Description

When selecting "WB income groups" from the Alternate views, it returns "Not applicable" & "Not included". Please remove these two lines.

Revision history for this message
moores (moores) wrote :

This can be fixed in the MDX. I will address.

Revision history for this message
Philippe Boucher (boucherp) wrote :

some of these have data, should they really be removed?

eg:
mdg -> mdg4 child mortality -> under 5 mortality rate

Changed in gho:
milestone: none → 1.0
assignee: nobody → moores (moores)
status: New → In Progress
Revision history for this message
Jessica (hoj-who) wrote :

I don't know where the data comes from and should be removed. Is it possible the database is calculating those figures?

Revision history for this message
moores (moores) wrote :

This part of the file js/mdx_templates.js (line 120) should be replaced as such:

BEFORE

 { "comment": "Alternate view MDX by WB Income",
     "id": "5",
     "mdx": "SELECT NON EMPTY Crossjoin( { %param1 } , {/*Start*/[Time Period].[Year].Members/*End*/} ) ON COLUMNS , { [World Bank Income Group].[World Bank Income Group].Members } ON ROWS FROM [%cube] /*COMMAND: EMPTY=[Region] */ " ,
        "cube": "Regional Yearly Core Sums",
        "hierarchyRemove": [
            {"value": "World Bank income group"},
            {"value": "Indicator"}
         ],
         "filter": [
            {"value":"[World Bank Income Group].[World Bank Income Group]","label":"World Bank Income Group"},
            {"value":"[Time Period].[Year]","label":"Time period (years)"}
         ]
    },

AFTER

 { "comment": "Alternate view MDX by WB Income",
     "id": "5",
     "mdx": "SELECT NON EMPTY Crossjoin( { %param1 } , {/*Start*/[Time Period].[Year].Members/*End*/} ) ON COLUMNS , { [World Bank Income Group].[All World Bank Income Groups].[Low income],[World Bank Income Group].[All World Bank Income Groups].[Lower middle income],[World Bank Income Group].[All World Bank Income Groups].[Upper middle income],[World Bank Income Group].[All World Bank Income Groups].[High income],[World Bank Income Group].[All World Bank Income Groups].[Global] } ON ROWS FROM [%cube] /*COMMAND: EMPTY=[Region] */ " ,
        "cube": "Regional Yearly Core Sums",
        "hierarchyRemove": [
            {"value": "World Bank income group"},
            {"value": "Indicator"}
         ],
         "filter": [
            {"value":"[World Bank Income Group].[World Bank Income Group]","label":"World Bank Income Group"},
            {"value":"[Time Period].[Year]","label":"Time period (years)"}
         ]
    },

Revision history for this message
Philippe Boucher (boucherp) wrote :

can you email me a new version of the file based on what is currently installed on gva1sucreon? I'm in a meeting for the next 20 minutes, but then I can roll it back into the deployed version on gva1sucreon

Revision history for this message
Philippe Boucher (boucherp) wrote :

oh yeah, Jessica gets a chocolate

Revision history for this message
Philippe Boucher (boucherp) wrote :

I've tried the new version of the file, but I still get not-included and not-applicable - I'm looking at this table:

mdg -> mdg4 child mortality -> under 5 mortality rate

Revision history for this message
moores (moores) wrote :

OK, I will fix. Basically, wherever you see "[World Bank Income Group].[World Bank Income Group].Members", this needs to be replaced with...

[World Bank Income Group].[All World Bank Income Groups].[Low income],[World Bank Income Group].[All World Bank Income Groups].[Lower middle income],[World Bank Income Group].[All World Bank Income Groups].[Upper middle income],[World Bank Income Group].[All World Bank Income Groups].[High income],[World Bank Income Group].[All World Bank Income Groups].[Global]

...as is the case with the parameter in under-5 mortality in menu.js. I will review and replace. FYI

Revision history for this message
Philippe Boucher (boucherp) wrote :

Instead of making explicit changes to the MDX queries, Steve has re-enabled a condition in the cube, GlobalHealthObservatory.xml, so that the not-applicable and not-included entries are not used. Code is checked in and now running on gva1sucreon. Setting this to fix-committed.

Changed in gho:
status: In Progress → Fix Committed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.