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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Arwen22
New Member

CQDWeb - PowerBi - Request

Hello, 

 

Need help with a request that I am trying to create. I would like to get all the stream audio from Teams using specific filter, dimension and measurements.

 

I have an error: Sorry, can't convert a null value in list type

Details: 

Value =

Type=[Type]

 

 

 

let
        //form the CQD API query body in JSON format
        CQDQueryRequestBody = "
        {
        ""Filters"":[
            {
                ""DataModelName"":""[AllStreams].[Is Server Pair]"",
                ""Value"":""[Client : Server]"",
                ""Operand"":0
            },
             {
                ""DataModelName"":""[SecondTenantDataEndpoint].[Second Reflexive Local IP Network]"",
                ""Value"": ""[194.119.127.0],[194.119.126.0]"",
                ""Operand"":1
            },
             {
                ""DataModelName"":""[AllStreams].[Second Tenant Id]"",
                ""Value"": ""[c9a7d621-4bc4-4407-b730-f428e656aa9e]"",
                ""Operand"":0
            },
             {
                ""DataModelName"":""[AllStreams].[Jitter Max]"",
                ""Value"": ""082"",
                ""Operand"":7
            }
        ],
        ""Dimensions"":[
            {""DataModelName"":""[AllStreams].[Date]""},
            {""DataModelName"":""[AllStreams].[Second Network Connection Detail]""},
            {""DataModelName"":""[AllStreams].[AllStreams].[Stream Direction]""}
        ],
        ""Measurements"":[
            {""DataModelName"":""[Measures].[Audio Stream Count]""}
            ]
        "
        & CommonQueryParametersString &
        "
        }",
        CQDQueryUrlEncoded = Binary.ToText(Binary.Compress(Text.ToBinary(CQDQueryRequestBody), Compression.GZip), BinaryEncoding.Base64),
        //make the CQD API http request
        CQDcontents = Json.Document(Web.Contents(https://&DataSource&"/RunQuery",
            [
                Headers = [#"content-type" = "application/json;charset=UTF-8"],
                Query = [#"query" = CQDQueryUrlEncoded]
            ])),
        //convert the CQD API JSON into a PBI/PowerQuery Table and supply the column names
        DataResultTable = Table.FromRows(CQDcontents[DataResult], {
            "Date",
            "Second Network Connection Detail",
            "Stream Direction",
            "Audio Stream Count"
            })
in
    DataResultTable
 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Arwen22 ,

 

Check the solution in the similar post:

Solved: Cannot convert value null to type List - Microsoft Power BI Community

Just add a steps that replace error with null (or other value).

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Arwen22 ,

 

Check the solution in the similar post:

Solved: Cannot convert value null to type List - Microsoft Power BI Community

Just add a steps that replace error with null (or other value).

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.