Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Yagevendra
Helper IV
Helper IV

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 10
v-jayw-msft
Community Support
Community Support

Hi @Yagevendra ,

 

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.

4.PNG

5.PNG

6.PNG

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @v-jayw-msft 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

 

Yagevendra_0-1628166093804.png

 

Hi @Yagevendra ,

 

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

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

@v-jayw-msft i know it should be 30 because each row of table has group of same values and unique_HH is distinct count of this particular group but if you can see on line chart the total of 10 by date and the client requirment is  should be 10 on export not 30..
I know client requirment may be wrong becasue line chart shown distint count on date wise only and table shown distinct count based on group of values.

Hi @Yagevendra ,

 

The total of a measure is a calculated value returned by the formula. It's not a simple cumulative value of the measure.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
parry2k
Super User
Super User

@Yagevendra can you share the pbix file, remove sensitive information before sharing.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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

parry2k
Super User
Super User

@Yagevendra 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.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k 

Yagevendra_2-1627968663412.png

 

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:-

Yagevendra_1-1627967776207.png

 

@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.

Yagevendra_0-1627988538758.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.