Forum Discussion
not getting correct count
Hello experts,
I am facing an issue that i am not able to realize why it's happening. I have a table where a lot of companies listed and there are lot of duplicates there. I have another table with distinct company names sorted by article number. I am making pdf reprts for top 5 company, one on each page. I created index column in distinct company page and filtering each page with each index. For 1,2,3 and 5 index, they are working perfectly and i am getting tables with how many/which authors and how many /which articles for them. But for 4 index, i just cant pull up right info.This company was listed in a cell with a lot of other companies. I splitted the column using split column>advanced>row (as mentioned by an expert here). So now each company is in seperate row. But still, my table shows a lot less count for distinct article id for particular this company. I tried to rank based on distinct count of article id and rank was off too for this company. Actual index/rank should be 4, but in my Rank calculated column it's 21 as it is reading lot less article id. I filtered the table for this particula company and a simplified snapshot is here,
| article id | company | author |
| 30 | A | lin |
| 31 | A | blair |
| 31 | A | brush |
| 31 | A | chen |
| 78 | A | dan |
| 96 | A | lin |
| 96 | A | lin |
| 56 | A | arnold |
| 66 | A | tyler |
| 66 | A | tyler |
| 66 | A | ben |
| 66 | A | ben |
| 65 | A | yan |
| 41 | A | paul |
| 41 | A | smith |
| 61 | A | zen |
| 61 | A | zen |
| 61 | A | zen |
| 61 | A | zen |
Any idea why it's happening? Spent whole day today to figure it out, no progress.
Thanks,
3 Replies
- kentylerSolution Sage
I think you will have to post a sample powerbi file for us to be able to help you pin point the problem.
- v-juanli-msftCommunity Support
Hi Anonymous
Assume you have two tables below, which is used to rank(top 5)?
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- AnonymousNot applicable
Luckily that company what was not giving me correct count happened to be the parent company for another one. So it was asked to take out in my rankings. That saved me for now. but still i could not find the reason why the count was not correct for one company only, not for other 1-3 and 5th ranked ones.
To answer your question Maggie, I had another table with company names and a whole number for distinct count for articles and i used that to rank. And in visual, as i had graphs for different dimensions, i was using table where i had a lot of duplicated values along with multiple values in each cell and i splitted those to make one in each cell. i had relationship b/w these two also.