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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

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

4.PNG

5.PNG

6.PNG

 

Best Regards,

Jay

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

 

Yagevendra_0-1628166093804.png

 

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

Anonymous
Not applicable

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

Anonymous
Not applicable

Hi @Anonymous ,

 

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

parry2k
Super User
Super User

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

Anonymous
Not applicable

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

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



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.

Anonymous
Not applicable

@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

 

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.

Yagevendra_0-1627988538758.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors