Forum Discussion
flat a json file
Hey,
I have a query like this
WITH flat AS (
SELECT
Newsreporting.context.device.osVersion as osVersion,
Newsreporting.context.device.browser as browser,
newsreporting.context.custom.dimensions.News as News,
OM newsreporting
OUTER APPLY GetArrayElements(newsreporting.context.custom.dimensions) MyDimension
)
SELECT
osVersion,
browser,
News
INTO OutputPowerBI
FROM flat
The input for this query is a json file.
Formatted JSON Data
{
"context":{
device":{
"osVersion":"Windows 10",
"browser":"Internet Explorer",
},
"custom":{
"dimensions":[
{
"News":"Portal"
},
]
}
}
The News returns all time null. How can I fix it?
But how can I flat the custom.dimensions section?
Thanks for your help
Stefan
1 Reply
- This forum is devoted to Microsoft Stream and not to JSON matters so I think you are going to help more support if you post it in the right forum