Jump to content
We've recently updated our Privacy Statement, available here ×

groups in crosstab for quarterly display


2340patel

Recommended Posts

I have a input json in this structure

{
    "values": [
    {
            "product": {
                "name": "bags",
                "location": "MainMarket ",
                "id": "1002"
            },
            "quarters": [{
                    "quarter": "1Q 2019",
                    "months": [{
                            "month": "march",
                            "purchase": 100

                        },
                        {
                            "month": "april",
                            "purchase": 100

                        }
                    ]
                },
                {
                    "quarter": "2Q 2019",
                    "months": [
                      {
                        "month": "april",
                        "purchase": 100
                    }
                  ]
                }
            ]
        },
        {
            "product": {
                "name": "shoes",
                "location": "MainMarket ",
                "id": "1001"
            },
            "quarters": [{
                    "quarter": "1Q 2019",
                    "months": [{
                            "month": "march",
                            "purchase": 200

                        },
                        {
                            "month": "april",
                            "purchase": 300

                        }
                    ]
                },
                {
                    "quarter": "2Q 2019",
                    "months": [
                      {
                        "month": "april",
                        "purchase": 500
                    }
                  ]
                }
            ]
        }
    ]
}

 

For every product there exist its quarter and its quarter purchase like below.

Productquartermarchapril
bags1Q100100
    
Productquarterapril 
shoes2Q200

 

When using group with crosstab the data is not  displayed as group instead only the last line is displaying.

Productquarterapril
bags1Q200

can using jsonql we group the display of data based on quarter. 

Thanks

Anjana 

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...