Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all
I have 2 tables linked by a column called Merged.3
The dax measure I created is returning me the total number of rows from the tablle 'All' (9), however it should return a value of 6 since I am choosing 2 of the 3 names as seen below:
The desired result should be 6 because Jose and Maria both have 3 rows each from the table called 'All':
Dax:
Non Duplicate Merged3 =
COUNTAX(
SUMMARIZE(
'All',
'All'[Merged.3]),
'All'[Merged.3]
)
I attach pbix: sample_merge_3.pbix
Can you please help me correct the dax to have the value of 6 when I choose Jose and Maria?
Thanks.
Solved! Go to Solution.
@o59393 Switch relationship direction to Both. Switch your relationship columns to Name (for both tables). Switch your relationship type fo Many-to-Many. Use a measure that just does COUNTROWS('All'). See PBIX file below signature. BTW, this model is kind of odd, probably better to create a dimension table for your names like DISTINCT('Actual'[Name]), create a 1:* between this table and your All and Actual tables and use this table in your slicer.
@o59393 Assuming that your slicer is based off of your All table, then it should just be:
COUNTROWS('All')
If it is not, then make sure that you have a relationship between your slicer table and your 'All' table and it still should be just COUNTROWS('All')
No, the slicer needs to come from the other table.,The 'All' table is just a master table.
Can you please have a look to the pbix?
Thanks.
@o59393 Switch your relationship direction to Both
@o59393 Switch relationship direction to Both. Switch your relationship columns to Name (for both tables). Switch your relationship type fo Many-to-Many. Use a measure that just does COUNTROWS('All'). See PBIX file below signature. BTW, this model is kind of odd, probably better to create a dimension table for your names like DISTINCT('Actual'[Name]), create a 1:* between this table and your All and Actual tables and use this table in your slicer.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |