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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

DAX query

I need help with DAX.

So I have tow tables namely Batch and Sentiment.

Saswa_D_0-1657448786175.png

As you can see Batch Table has a company name and one comapny can have multiple assets.

Similary in Sentiment table, one asset can have multiple sentiments

Saswa_D_1-1657448857247.png

Now I need to know for one company there are how many sentiments?
Like for company ASDA having Green, Animal,Yellow,Bird as assets and they have in total 8 sentiments.
So for ASDA value should be 8.
Similarly for other companies.
Can someone please guide me on this ? @SpartaBI 

2 ACCEPTED SOLUTIONS
SpartaBI
Community Champion
Community Champion

You basically just need to create a realetionship based on asset column, but I will pm you anyway

View solution in original post

SpartaBI
Community Champion
Community Champion

@Anonymous my pleasure.
Make sure that all of the assets are in both tables otherwise you will lose information as in m:m cardinality the blank row concept is not applicable.

View solution in original post

6 REPLIES 6
SpartaBI
Community Champion
Community Champion

Hey, will pm you

SpartaBI
Community Champion
Community Champion

@Anonymous can you share the pbix and I will return one with solution

Anonymous
Not applicable

Hey @SpartaBI , I might not be able to share the PBIX. The above data is just the dummy data for reference. I was looking for help in aggregating the sentiments for each company.
Can you please see if you can help here

SpartaBI
Community Champion
Community Champion

You basically just need to create a realetionship based on asset column, but I will pm you anyway

Anonymous
Not applicable

Thank You very much, It comes as a many to many relationship but seems that is the easy way to get this done.
Thanks again

SpartaBI
Community Champion
Community Champion

@Anonymous my pleasure.
Make sure that all of the assets are in both tables otherwise you will lose information as in m:m cardinality the blank row concept is not applicable.

Helpful resources

Announcements
November Fabric Update Carousel

Fabric Monthly Update - November 2025

Check out the November 2025 Fabric 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.

Users online (27)