Forum Discussion
Identifying Duplicates and getting a count from two different tables.
I Have two reports that come in weekly. I need to creat a table that shows which values on the current weeks report were also on the prior weeks report and get a count of how many times. I tried using the measure below to no avail, only returning zero. Any help would be greatly appreciated. Here is a sample of the data
- Anonymous2 years ago
Hi JChouris ,
Because there are two tables, you can create relationships between them.
Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn
Then create a meaure.
Duplicate Count = COUNTX ( FILTER ( ALL ( Table ), Table[UniqueID] = SELECTEDVALUE ( Table2[UniqueID] ) ), Table[UniqueID] )How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- AnonymousNot applicable
Hi JChouris ,
Because there are two tables, you can create relationships between them.
Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn
Then create a meaure.
Duplicate Count = COUNTX ( FILTER ( ALL ( Table ), Table[UniqueID] = SELECTEDVALUE ( Table2[UniqueID] ) ), Table[UniqueID] )How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.