Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello BI Community,
I have to count the number of duplicate records and then Distinct Count on Project ID so that I can get unique records -
please take a look of below table
I have done it by using report level filters But I want it in Measure (Not in Calculated Column or Table)
Input :
Output :
so I want to do it in Measure wich returns 1173 .
i use below measure to return above table -
it gives me following error
Please help me out 🤔
Thank you in Advance !!!!
Regards,
RK
PBIX File ----https://drive.google.com/drive/folders/1BFsxCEyM6iYqp6VXGJAlvllpgqSAr2Nx?usp=share_link
@amitchandak @Gaurav_Lakhotia
Hello
Did any one found solution
please let me know..............................................
Regards,
RK
Any Update anyone..............
in SQL we can retrive data from two tables using following Query
with Count_Of_Duplicate
as
(
select COUNT(PROJECT_STANDARD_ACCREDITATION.BK_NGPSBI_PROJECT_STANDARD_ACCREDITATION) AS COUNT_OF_BK,
Project.Project_ID,
PROJECT_STANDARD_ACCREDITATION.Project_Std_Acr_Accreditation_Id,
PROJECT_STANDARD_ACCREDITATION.Project_Std_Acr_Standard_Id
from PROJECT_STANDARD_ACCREDITATION
Full Outer Join Project
on PROJECT_STANDARD_ACCREDITATION.Project_ID=project.Project_ID
group by Project.Project_ID,
PROJECT_STANDARD_ACCREDITATION.Project_Std_Acr_Accreditation_Id,
PROJECT_STANDARD_ACCREDITATION.Project_Std_Acr_Standard_Id
HAVING COUNT(PROJECT_STANDARD_ACCREDITATION.BK_NGPSBI_PROJECT_STANDARD_ACCREDITATION) > 1
)
select DISTINCT [Project_ID] from Count_Of_Duplicate
Thanks & Regards,
Ranjeet 😊
Let me know....
Hi @RanjeetK,
Need more clarity on the logic you have implemented.
There are total 7 line items for Project ID 10
In the below table your are showing "Count of BK_NGPSBI_PROJECT_STANDARD_ACCREDITATION" as 2. Not able to get the logic. Please clarify.
Regards,
Gaurav
Hi @Gaurav_Lakhotia
thanks for reply,
10416 is Project ID, there are three duplicate Acr ID and Stand, ID combination
(10416 133 32 ) but BK ID is diffrent for every record so grouping on Project ID , Acr ID & Stand. ID
1st req - i need to find all duplicate reords first
Step 2 - PQ1 >1 condition so we can exclude single records
Step 3 - Now count distinct Project ID from table 2 only as i have this type of model and i want it in measure
@RanjeetK , try to use summarize in place of summarizecolumns and rebuild the measure
Hi @amitchandak ,
Yes, Actually, I need to do Grouping on Project ID, Accreditation Id & Standard Id (Combination of these 3) and BK is unique, so counting on BK and grouping on Project ID, Accreditation Id & Standard Id I use to summerize but gives me wrong ANS 5632
But I want this
i want above image conditions in a Masure
Please reffer this PBIX file - New
https://drive.google.com/drive/folders/1BFsxCEyM6iYqp6VXGJAlvllpgqSAr2Nx?usp=share_link
please help me out
Regards,
RK
User | Count |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
104 | |
93 | |
83 | |
64 |