Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

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 idcompanyauthor
30Alin
31Ablair
31Abrush
31Achen
78Adan
96Alin
96Alin
56Aarnold
66Atyler
66Atyler
66Aben
66Aben
65Ayan
41Apaul
41Asmith
61Azen
61Azen
61Azen
61Azen

 

 

Any idea why it's happening? Spent whole day today to figure it out, no progress. 

Thanks,

3 Replies

  • kentyler's avatar
    kentyler
    Solution 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-msft's avatar
    v-juanli-msft
    Community Support

    Hi Anonymous 

    Assume you have two tables below, which is used to rank(top 5)?

     

    Best Regards
    Maggie
    Community 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.
    • Anonymous's avatar
      Anonymous
      Not 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.