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

Categorization

Hi all,

 

I have a need in one report and I don't know how to solve it. I need to show the results grouped according to some of the attributes of two different fact tables. The combination of these attributes (they all exists in both fact tables) determine the category.

 

I.e: Assuming the category is composed by "Type" and "Color" and that both attributes exist in Sales table and Invoices table:

CATEGORY          SALES        INVOICED

Blue cars               100                80

Red bikes               50                 60

 

If it were with only one table (sales or invoices) I could do it adding an extra column filled with DAX using if's or switch, but how could I solve this applying to both tables without repeating the category column in the report?

 

Thanks in advance.

 

 

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please share sample data and the result you expect?

 

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

amitchandak
Super User
Super User

new table = distinct(union(summarize(table,table[type],table[color]),summarize(table,table[type],table[color])))

New new table create a new column

create a new column now = [Color] & " " [Type]

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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
Top Kudoed Authors