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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors