Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
kruzikruz
Regular Visitor

Problem with JSON

hi,

How can I get rid of 3 rows in a table with this JSON schema? Every time I want to expand the adviceAlgorithm list, I get 3 rows in the table even though I have one ID.

 

 

 

{
    "totalCount": 1,
    "advices": [
        {
            "id": "04b50215-d7c9-473a-8b55-0c5077ac696a",
            "company": {
                "id": "c7f6be29-5a64-491e-875b-684ac9aa9db7",
                "name": "FIRMA Sp. Z o.o.",
                "rolePermission": "ROLE_SUPPLIER"
            },
            "gate": {
                "id": "dd957e10-6b76-425d-8127-4f183d0de121",
                "name": "DOK2"
            },
            "warehouse": {
                "id": "172864d1-f107-4308-8d28-c24fc2fd1d76",
                "name": "MAGAZYN H4"
            },
            "dateTimeFrom": "2023-01-09 11:30:00",
            "dateTimeTo": "2023-01-09 12:30:00",
            "duration": 60,
            "durationPresentation": "01:00",
            "timeStart": 690,
            "adviceAlgorithm": [
                {
                    "algorithmField": {
                        "id": "114bd7f8-42b1-4298-84c0-d978f87b8822",
                        "name": "Numer zamowienia",
                        "shortName": "NZ",
                        "variable": 5,
                        "type": "T",
                        "option": [],
                        "optionObj": [],
                        "enableIdenticalValueSearch": false,
                        "enableDeleteUsedValue": false,
                        "enableMultipleValue": false,
                        "minimumNumberSearchCharacters": null
                    },
                    "algorithmFieldValue": "123456789",
                    "algorithmFieldValuePresentation": "123456789"
                },
                {
                    "algorithmField": {
                        "id": "40aa83bd-d5ec-4cf1-8dfe-58a2e3d56438",
                        "name": "Ilość palet",
                        "shortName": "IP",
                        "variable": 1,
                        "type": "N",
                        "option": [],
                        "optionObj": [],
                        "enableIdenticalValueSearch": false,
                        "enableDeleteUsedValue": false,
                        "enableMultipleValue": false,
                        "minimumNumberSearchCharacters": null
                    },
                    "algorithmFieldValue": "33",
                    "algorithmFieldValuePresentation": "33"
                },
                {
                    "algorithmField": {
                        "id": "d3b88db9-3a9d-47f3-93ed-14606b70c632",
                        "name": "Rodzaj palet",
                        "shortName": "RP",
                        "variable": 4,
                        "type": "C",
                        "option": [
                            "037990b3-d030-45bb-a390-e809ba5ff5ac",
                            "f28cc042-593c-43b8-997d-2442455690de"
                        ],
                        "optionObj": [
                            {
                                "id": "037990b3-d030-45bb-a390-e809ba5ff5ac",
                                "variable": 5,
                                "name": "Spiętrowane"
                            },
                            {
                                "id": "f28cc042-593c-43b8-997d-2442455690de",
                                "variable": 6,
                                "name": "Pojedyńcze"
                            }
                        ],
                        "enableIdenticalValueSearch": false,
                        "enableDeleteUsedValue": false,
                        "enableMultipleValue": false,
                        "minimumNumberSearchCharacters": null
                    },
                    "algorithmFieldValue": "f28cc042-593c-43b8-997d-2442455690de",
                    "algorithmFieldValuePresentation": "Pojedyńcze"
                }
            ],
            "shipper": null,
            "driverName": "Jan Kowalski",
            "vehicleNumber": "GD123",
            "phone": null,
            "documentNumber": null,
            "number": "000001009",
            "isFinish": false,
            "description": null,
            "type": "U",
            "typePresentation": "advice.form.unloading",
            "storage": false,
            "status": "5",
            "statusPresentation": "advice.status.finish",
            "statusCarInYard": "2023-01-09 11:27:00",
            "statusInProgress": "2023-01-09 11:30:00",
            "statusFinish": "2023-01-09 11:49:00",
            "diffCarInYardAndDateTimeFrom": "3 minuty",
            "diffInProgressAndFinish": "19 minut",
            "diffDateTimeFromAndInProgress": "0",
            "isFlash": false,
            "isCyclical": false,
            "isDeleted": false
        } 
    ]
}

 

 

 

1 REPLY 1
lbendlin
Super User
Super User

What do you expect to happen instead?  Ignore that array?  Concatenate the values?  Pick the first entry? Pick a random entry?

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.