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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Summarize and refer Group Names to Order Numbers

Hey guys,

 

I'm searching for a measure because I can't do it in the advanced editor any more.

 

I have an older dataset where it worked by creating new columns in the advanced editor, which should be good to demonstrate the problem:

 

This is an example of the raw data:

 
 

Screenshot 2020-09-16 220717.png

 

My goal is to show how many OrderNumbers are used by multiple teams,

E.g.:           First 4 rows: Team AAA and BBB worked together on one OrderNumber. (1111)

                    Row 5-8:     Team AAA,BBB, CCC and DDD worked together on one OrderNumber (2222)

 

And I also want to show how many OrderNumbers were used exclusively by one Team

E.g.:            Row 9:       Team CCC worked alone on one order Number (3333)

 

 

Here is the current workflow in power bi (different dataset):

 

Base data (but already modified that there is an amount of "UnderOrderNumbers" -> I don't want that modification)

1.png

 

This data is transformed to this:

 

2.png and this 3.png

 

 

Which ultimatley creates a dashboard that should look like that:

 

5.png

 

Is there a way to create a measure that can show it like that? I tried it, but I'm unfortunatley not capable of doing it (or maybe its not even possible..)

 

I'm thankfull for any help and ideas!

2 ACCEPTED SOLUTIONS
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a measure or column as a tooltip. See if it meets your needs.

Measure = 
CONCATENATEX(FILTER('Table',COUNTROWS(FILTER('Table',EARLIER('Table'[OrderNumber])='Table'[OrderNumber]))),'Table'[Team],"   ")

column = CONCATENATEX(FILTER('Table','Table'[OrderNumber]=EARLIER('Table'[OrderNumber])),'Table'[Team]," ")

 

V-lianl-msft_0-1600676945980.png

Sample .pbix

If the problem persists,could you share the sample pbix via cloud service like onedrive for business?(Please mask any sensitive data before uploading)

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @Anonymous ,

 

Try:

team = RELATED('Group'[TeamName])

s_t = CONCATENATEX(FILTER('BaseData','BaseData'[OrderNumber]=EARLIER('BaseData'[OrderNumber])),'BaseData'[Team]," ")

Sample .pbix has been updated

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a measure or column as a tooltip. See if it meets your needs.

Measure = 
CONCATENATEX(FILTER('Table',COUNTROWS(FILTER('Table',EARLIER('Table'[OrderNumber])='Table'[OrderNumber]))),'Table'[Team],"   ")

column = CONCATENATEX(FILTER('Table','Table'[OrderNumber]=EARLIER('Table'[OrderNumber])),'Table'[Team]," ")

 

V-lianl-msft_0-1600676945980.png

Sample .pbix

If the problem persists,could you share the sample pbix via cloud service like onedrive for business?(Please mask any sensitive data before uploading)

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you @V-lianl-msft that worked out pretty good!

 

But a new problem occured:

 

Since I linked the data for the team with another table over an many-to-many cardinality, I don't have the teams (AAA, BBB, CCC) but the Teammembers. Is there an easy way to get the Team names in the diagram or the DAX formula?

 

The "Replace" function or the "Substitute" function seem not good for this purpose since there are a lot of teammembers, which are changing here and there. 

Hi @Anonymous ,

 

Share a sample pbix file or paste some data and tell the relationship between the tables. In this way, I can be more clear of the scenario so that I can help you better.

Please mask any sensitive data before uploading

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @V-lianl-msft

 

thank you for the fast reply.

 

I advanced you original pbix file to show the problem. I unfortunatley can't share data in onedrive through my company account, so I made screenshots, which hopefully help.  (Is there another way to upload the pbix file to the forum?)

 

Basedata

basedata.png

 

Teammember to groupnumber

Teammember to groupnumber.png

 

 

Groupnumber to teamname

Groupnumber to teamname.png

 

Relationships

relation.png

 

The result (instead of the Teammembers, there should be the teamnames)

result.png

Anonymous
Not applicable

Thanks for your help in advance, really appreciate it! @V-lianl-msft 

Anonymous
Not applicable

Here are the tables to copy, I hope that makes it easier:

 

Basedata:

Teammember OrderNumber UnderOrderNumber tooltip

Harper11111Harper Harper Harper
Harper11112Harper Harper Harper
Harper11113Harper Harper Harper
James22224James James Mason Evely
James22225James James Mason Evely
Mason22226James James Mason Evely
Evely22227James James Mason Evely
Ella33338Ella Ella Ella Jackson Avery Jack
Ella33339Ella Ella Ella Jackson Avery Jack
Ella333310Ella Ella Ella Jackson Avery Jack
Jackson333311Ella Ella Ella Jackson Avery Jack
Avery333312Ella Ella Ella Jackson Avery Jack
Jack333313Ella Ella Ella Jackson Avery Jack
Scarlett444414Scarlett Madisom Eleanor
Madisom444415Scarlett Madisom Eleanor
Eleanor444416Scarlett Madisom Eleanor
Eleanor555517Eleanor Wyatt
Wyatt555518Eleanor Wyatt
Wyatt666619Wyatt
Harper777720Harper
Harper888821Harper
Jack999922Jack

 

 

Teammember Groupnumber

Harper101
James202
Mason303
Evelyn404
Ella303
Jackson202
Avery202
Jack404
Scarlett303
Madisom202
Eleanor101
Wyatt202
Carter303
Graysom404
Lily404

 

 

Groupnumber Teamname

101TeamA
202TeamB
303TeamC
404TeamD

 

Hi @Anonymous ,

 

Try:

team = RELATED('Group'[TeamName])

s_t = CONCATENATEX(FILTER('BaseData','BaseData'[OrderNumber]=EARLIER('BaseData'[OrderNumber])),'BaseData'[Team]," ")

Sample .pbix has been updated

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thank you @V-lianl-msft that worked out great so far.

 

The only question that I have left is, if there is any way to group the s_t outcomes in a good way.

 

Example:

 

I created a diagram out of your sample file to visualize my question.

 

Screenshot 2020-09-27 232838.png

 

"A A A" and "A" are the same Team that worked together, so I need it to be together in the diagram.

 

The Outcome in the table should be: "A" = 5 Order Numbers

 

So even if team A worked with different UnderOrderNumbers in one OrderNumber, it should still be counted like it would be if the team worked unter multiple OrderNumbers alone.

 

I hope it is understandable what I mean.

 

That logic should also be implemented for Team Cooperations:

 

For example there can be a "A B" outcome but not an "A A A B B" outcome.

 

Thanks for your help and excuse my bad explanation skills.

 

Kind regards

UserBi404

 

 

Anonymous
Not applicable

To maybe explain it better:

 

It should be checked for every OrderNumber, if one of the teams used it.

If yes, it should be counted one time,

if not, it shouldn't be counted.

 

I think the picture in my very first post in this thread can explain it better than my words. Thanks for your support @V-lianl-msft !

 

Edit.: I tried to do Datagroups, wit the "Group" option in PowerBi it kind of worked, but it is an never ending process of choosing all different possibilitys. Also it is not really dynamic, so if I add new data, I always have to start from scratch. Is there a way to group it automatically? 

 

Anonymous
Not applicable

I tried "Related"

 

 

column = CONCATENATEX(FILTER('Table','Table'[OrderNumber]=EARLIER('Table'[OrderNumber])),RELATED'Table2'[Teamnames]," ")

 




But it always shows me "Too many arguments were passed to the RELATED function. A maximum of 1 arguments are allowed for the function

 
 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors