Forum Discussion
Verify data from different columns to verify data from another
- Anonymous2 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.
Hi,
Drag this measure to a card visual
=calculate(countrows(Data),data[name rule]=blank()&&[repeated]<>1)
Hope this helps.
hello thanks for your help, but it didn't work either, the error is in the syntax =blank()
I tried changing blank to blank, but it didn't work either
- Ashish_Mathur2 years ago
Super User
Hi,
I have assumed that "name rule" and "repeated" are columns in the Data table.
- Syndicate_Admin2 years ago
Administrator
Exactly
- Ashish_Mathur2 years ago
Super User
I will need to see the file. Share the download link. Show the problem very clearly.