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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Elache
Regular Visitor

Summarize tags from orders to customers table

Hello,
I want to group in my "Customer" table the tags that are assigned to customers in my "Orders" table. They are always the same tags that are assigned so there is no risk of duplication but I can't manage to do it. My ideal output is as follows:

ORDERS  CUSTOMERS
ClientTag ClientTag
A1 A1
B2 B2
C3 C3
A1   
A1   
B2   

Thank you very much for any help!
Have a nice day

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @Elache 

Tag =
VAR _client = [Client]
RETURN
MINX(
    FILTER(Orders, Orders[Client]=_client),
    Orders[Tag]
)

View solution in original post

4 REPLIES 4
Elache
Regular Visitor

It's perfect! Thank you so much

 

FreemanZ
Super User
Super User

hi @Elache 

Tag =
VAR _client = [Client]
RETURN
MINX(
    FILTER(Orders, Orders[Client]=_client),
    Orders[Tag]
)
Elache
Regular Visitor

Hey @JorgePinho 
Thank you for your answer!
I want to add this to my existing customer table as a column. For information, my tag is a non numerical value.
Thank you!

 

 

JorgePinho
Solution Sage
Solution Sage

Hey @Elache! Try this DAX for a new table:

 

Table = SUMMARIZE(ORDERS, [Client], MAX(Tag))

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.