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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
flashbi2
New Member

User list assigned to orders

Hi,

I am struggling with the possibility of displaying the number of orders assigned to a specific person in a bar chart.

Lets assume i have got such data:

orderperson
1John
2Karen
3peter
4Greg
5John. Karen
6John. Karen, Greg
7Karen, Greg

I want to show on a graph how many orders are assigned only to John, Karen, Peter, etc.
When I add these columns to bar chart I got 7 columns but I want to have only 4 because there are only 4 people assigned to orders. I tried to split the person column into different columns (person1, person2, person3) but then I got columns with spaces.
Do you have any idea how to achieve this?


Thank you in advance

2 REPLIES 2
SamInogic
Super User
Super User

Hi @flashbi2 ,

If we consider your table data from question then we noticed that you need to split out the data based on person separated by comma (,) and dot (.). Also, there are extra spaces with names so need to trim the data.

This needs below steps to be performed in Power Query editor,

1. Select person column and click on transform tab. Within this tab click on Split Column with option “By Delimiter” as shown in the below screenshot.

SamInogic_0-1691663999288.png


2. This will ask for delimiter, so select comma “,” and in Advanced options select “Rows” option as shown in below screenshot.

SamInogic_1-1691664038777.png

3. Repeat same 2 steps to split column data further using delimiter dot (.).

SamInogic_2-1691664038802.png

4. Now trim the data of person column to remove any extra spaces by clicking on Transform and selecting Trim option.

SamInogic_3-1691664070761.png

 

This will result in 4 bars in bar chart.

SamInogic_4-1691664070762.png

Thanks!

 

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Hi,

Thanks for your help but is there any other way to do this without duplicating the rows? I have many more other columns and it will affect other metrics. I tried to do this by creating another table with all the users, then building the relationship with the table. I also wrote some DAX formula but nothing worked

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.