Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Export to csv shown wrong total.

Hi all, 

When i export my visual data into csv file the total of value column showing me wrong i had created measure = Distinctcount(Homenumber)

I was trying to convert visual into table and find out the solution but didn't get anything i found only my table total haven't match with my data.

I know something i did wrong with measure but i create simple measure distinct count.

I faced same problem with other visual and those visual have complax dax.

Need help.

10 Replies

  • Anonymous there are many posts talking about it, here is a similar one, if it still doesn't work, share the sample data and how you are visualizing it.

     

    Solved: COUNT DISTINCT SHOWS WRONG GRAND TOTAL - Microsoft Power BI Community

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

    • Anonymous's avatar
      Anonymous
      Not applicable

      parry2k 

       

      The total of Unique house is correct 2022 but the value inside the table is not correct, while i exporting data into csv then the total of unique house column changed to 5705 exact match with table insides value.
      Here are the values shown in export file:-

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        parry2k 
        I tried this dax formula the total of table changed 2022 to 5705

        Unique House = var _t = SUMMARIZE(F_20210716,F_20210716[Date],F_20210716[E_ID],F_20210716[Region],F_20210716[Home number],F_20210716[Installation Status],"UniqueHome",DISTINCTCOUNT(F_20210716[Home number]))
        return
        SUMX(_t,[UniqueHome])
        But i didn't get my expacted answer


        Also i filterd my data table it shown me the distinct count is 2022 this is correct value. i don't know why on table and export shown me wrong output.

         

  • Anonymous can you share the pbix file, remove sensitive information before sharing.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi parry2k There is no option available to attech PBIX file how could i provide file here any other way?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    It's better to share some sample data if you don't have any Confidential Information.

    I did some simple test but could not reproduce the scenario.

     

    Best Regards,

    Jay

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous here is the sample data.

      DateE_IDRegionHome numberStatus
      6/21/2021650North6RH
      6/21/20213East6RH
      6/21/20211West6RH
      6/21/2021650North14RH
      6/21/20212South14RH
      6/21/20211West14RH
      6/21/2021650North20RH
      6/21/20212South20RH
      6/21/20211West20RH
      6/21/2021650North35RH
      6/21/20212South35RH
      6/21/20211West35RH
      6/21/2021650North38RH
      6/21/20212South38RH
      6/21/20211West38RH
      6/21/2021650North39RH
      6/21/20212South39RH
      6/21/20211West39RH
      6/21/2021650North46RH
      6/21/20212South46RH
      6/21/20211West46RH
      6/21/2021650North49RH
      6/21/20212South49RH
      6/21/20211West49RH
      6/21/2021650North53RH
      6/21/20212South53RH
      6/21/20211West53RH
      6/21/2021650North60RH
      6/21/20212South60RH
      6/21/20211West60RH

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Anonymous ,

         

        I didn't get the point. Shouldn't the total result be 10? Do you want it to be 30?

         

        Best Regards,

        Jay