The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have some data that I extracted from a JSON which loaded my data into a single column with some of the data being text and some of the data being lists within the same column. Typically when a column has lists the drop down at the column header has the icons to expand the column, because the list contains both text & list values, the drop down button only lets me filter to the text values.
Is there a method to either deliminate the list values within the single column or to break into new columns? For reference I've tried to split column by deliminater and that hasn't worked.
Solved! Go to Solution.
Hi @RPeruski
Try to add a new column with following code:
if Value.Is([Car Failures Reported Per Customer], type list)
then Text.Combine(List.Transform([Car Failures Reported Per Customer], Text.From), ",")
else [Car Failures Reported Per Customer]
This will give you something similar to this:
Then you can make split columns to rows based on the comma.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @RPeruski ,
Since you have the column being a JSON you can do the parse as JSON in the Power Query:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe column with list and text values is after I've parsed as JSON in Power Query and then expanded the values as new columns.
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHere is a mock up of what the data looks like.
Car Failures Reported Per Customer |
Engine |
Transmission |
List |
Brakes |
Then the List would contain the following
Engine |
Brakes |
Hi @RPeruski
Try to add a new column with following code:
if Value.Is([Car Failures Reported Per Customer], type list)
then Text.Combine(List.Transform([Car Failures Reported Per Customer], Text.From), ",")
else [Car Failures Reported Per Customer]
This will give you something similar to this:
Then you can make split columns to rows based on the comma.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsSuccess! Thank you!