Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
2 years ago
Solved

Verify data from different columns to verify data from another

I need to count the TAG (Team TAG) that are correct, for that I have to count the blanks in the "Name Rule" column, the values in the "Team Number" column that contain letters and count from the "Rep...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hello,Ashish_Mathur ,Daniel29195 ,thanks for your concern about this issue.

    Your answer is excellent! And I would like to share some additional solutions below.
    Hi,Loreto-F .I am glad to help you.
    You can refer to my test below
    Here is my test data:

    Since the filtering conditions you have given are not very specific, I have created a variety of scenarios to simulate the possible filtering conditions, and the results of the filtering of non-repeating counting

    1. If you want to filter out the data range as follows, you can try the following measure2:

     

    Measure 2 = 
    VAR _table = SUMMARIZE('Table','Table'[Team TAG],'Table'[Team Number],'Table'[Repeated],'Table'[Name Rule],"ISZIMU",IFERROR(INT('Table'[Team Number]),0))
    RETURN COUNTROWS(SUMMARIZE(FILTER(_table,'Table'[Repeated]<>1),'Table'[Team TAG]))

     

    2. If you want to filter out the results as follows, you can try the following measure.

     

    Measure = 
    VAR _table = SUMMARIZE('Table','Table'[Team TAG],'Table'[Team Number],'Table'[Repeated],'Table'[Name Rule],"ISZIMU",IFERROR(INT('Table'[Team Number]),0))
    RETURN COUNTROWS(SUMMARIZE(FILTER(_table,'Table'[Repeated]<>1&&([ISZIMU]=0||'Table'[Name Rule]=BLANK())),'Table'[Team TAG]))

     

    3. If you only want to filter out records with 'Table' [Repeated] column <> 1, you can use measure3 below:

     

    Measure 3 = 
    VAR _table = SUMMARIZE('Table','Table'[Team TAG],'Table'[Team Number],'Table'[Repeated],'Table'[Name Rule],"ISZIMU",IFERROR(INT('Table'[Team Number]),0))
    RETURN COUNTROWS(SUMMARIZE(FILTER(_table,'Table'[Repeated]=1&&('Table'[Team Number]<>BLANK()||[ISZIMU]<>0)),'Table'[Team TAG]))

     

    If you can explain your filtering criteria in detail and explain the filtering relationship in it and also please share out the pbix file which does not contain sensitive data, it will help in solving your problem.

    Note that the SUMMARIZE() function itself has a de-emphasis role, so there is no need to use distinctcount() again

    I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.

    Best Regards,

    Carson Jian,

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.