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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
RandyPgh
Resolver III
Resolver III

SharePoint variance when change multiple choice column to single select

We had an online SharePoint list with a lookup that allowed for multiple selections. This was switched to single selection. In the service, our Power BI dataflow returned all list items with a selected lookup value as a single ID number, but any items that did not have any selected value were returned as an empty list rather than null. The Desktop, however, was returning null for these empty selections.

 

On the chance that this variance was a 1.0 vs 2.0 variance or that we would later decide to move object logic into a dataflow, we added logic on both platforms to convert the empty list items to null. For example, if the column with mixed types was named [OldMultiSelect], the lazy way to avoid needing to change downstream code is

 

1. added column with logic 

    if Value.Is( [OldMultiSelect], type list) then null else [OldMultiSelect]

2. removed [OldMultiSelect] column

3. renamed new column from #1 above to [OldMultiSelect]

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @RandyPgh ,

 

Thanks for sharing!

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

1 REPLY 1
v-jayw-msft
Community Support
Community Support

Hi @RandyPgh ,

 

Thanks for sharing!

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors