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
mrsid2201
Regular Visitor

Distinct column values from SharePoint Lookup

Hi,

 

I'm pretty new to Power BI. 

I have created a project status dashboard in Power BI Desktop. My data is being pulled from a Sharepoint online list. 

My online list columns are as follows:

 

Country | Vertical | Categories | Project Title | Project Stage | IT Owner Status

 

The IT Owner column is an AD lookup field so as to easily enter a person's name. 

On my dashboard, I have a stacked column chart visualization for Project Status by IT Owner.

In some cases, there might be several IT Owners for the same project.

 

I have attached two screenshots for example:

 

  • This is the sharepoint list with two projects where the same IT owner (Bino Balan) is part of both the projects (I wasn't able to capture the status column in this screenshot). 

Template.PNG

 

  • This is the visualization for IT Owner Project Status.

IT Owner Project Status.PNG

 

For the above example, the visualization treats the same IT owner (Bino Balan) as two different values. How can I pull distinct names from a group of IT owners in this example and add the status count to their individual names?

 

Thanks!

2 REPLIES 2
tex628
Community Champion
Community Champion

For a project including 3 people i'd say you need to create 2 additional rows. This can be done by a combination of split column and unpivot:

Starting tableStarting tableSplit column by ";"Split column by ";"

Highlight your new columns and then press unpivot. 

You should get a row for each participant in each project.


Connect on LinkedIn

I was able to split the columns but unpivoting the new columns caused the new columns to disappear and the following error:

 

DataSource.Error: We couldn't parse OData response result. Error: A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either specified in the payload, explicitly by the caller or implicitly inferred from the parent value.
Details:
DataSourceKind=SharePoint
DataSourcePath=https://#######/sites/it

 

PowerBI Error.PNG

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.