- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reporting on Many to many
I have 3 datasets DS1, DS2 & DS3.
Example
DS1
DS1ID Name DS2ID
1 T1 1
1 T1 2
1 T1 3
2 T2 4
2 T2 3
2 T2 5
3 T3 1
3 T3 6
DS2
DS2ID DS2Name
1 S1
2 S2
3 S3
4 S4
5 S5
6 S6
DS3
DS2ID PName
1 p1
1 p2
2 p3
2 p4
3 p1
3 p3
4 p5
4 p6
5 p2
5 p3
Now the report need to count all Trans in DS1 for a Giver PName
PName Count of DS1.Name
p1 3
p2 1
.. ...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mmoizk Which visual are you using ? When you pick a field from third table have you specified you want the count instead of Don't summarize (if you're using table).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mmoizk It is simple. You should have your relationships that looks like below. In any visual select name from TAB1 and Count of PName from TAB3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Ankit Patira, I wish it was that easy . I did extactly that but when i pic something from the 3rd table i get an error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mmoizk Which visual are you using ? When you pick a field from third table have you specified you want the count instead of Don't summarize (if you're using table).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i was using a table visual which was erroring. If i use any other chart with a measure of sum or count i am able to report on the 3rd table. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mmoizk can you explain how you get your totals? I get other totals with your setup???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sean, Sorry i didn't mention this earlier but count are actually Distict count of DS1ID .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mmoizk I still get different results - but all you need is a simple distinct count measure.
Distinct Names = DISTINCTCOUNT(DS1[Name])
EDIT: If your setup is the same it should work.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
01-20-2025 11:52 PM | |||
02-14-2025 01:01 AM | |||
02-05-2025 10:02 AM | |||
01-14-2025 01:21 AM | |||
01-20-2025 02:44 AM |