Forum Discussion
iperezal
10 years agoFrequent Visitor
Expand colum with lists
Hello, I'm using PowerBI Desktop to display info from a Json file. Table created with imported data contains columns that are lists of objects. When I expand this tables with the Query Editor, th...
- 10 years ago
Sorry for the delay.
In JSON, an object("[{},{}]" part in your json file) is defined as: An object is an unordered set of name/value pairs. See JSON.org.So the duplication in your case is by Cartesian product of the different objects. To get a proper data model, one reasonable way is to duplicate the JSON query and break it into 3 tables.
Then set one:many relationship, you report would show ok.
iperezal
10 years agoFrequent Visitor
Eric_Zhang This is an example to explain my dubtes:
You can see: In the final table there are duplicated values from Json file
iperezal
10 years agoFrequent Visitor
Look this graphic. My info is distorded.
"primero" value for "id" : 10230 should be 4+2 = 6 but powerBI has duplicated my info and I get 12