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! Request now

Reply
Digger
Post Patron
Post Patron

Countr rows exporte to csv

How write mesure which will count how many rows will be exported to csv?

No one of existing agregation is not work (count, countrows, distinct, calculatetabe, summarize and etc)

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @Digger ;

Is the answer helpful to you? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @Digger ;

You could use summarize then countrows it , in addition ,it should +1 because header line.

For example:

1.if the visual field come from one table.

count1 = 
var _a=SUMMARIZE('Table',[ Category],[account name])
return COUNTROWS(_a)+1

2.if the visual field come from two table without relationship.

count2 = 
var _a=SUMMARIZE('Table',[ Category],[account name])
return COUNTROWS(_a)*COUNTROWS('new')+1

The final output is shown below:

vyalanwumsft_0-1630990696253.png

vyalanwumsft_2-1630990747082.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yalanwu-msft  it is wrong

Digger_0-1631092334941.png

it not working on my example, it show 1009 rows but i got to csv 475 rows

Hi, @Digger ;

It should be noted here that the values field is not in summarize, and then you try it.

vyalanwumsft_0-1631150520338.png

 

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

VahidDM
Super User
Super User

@Digger 

 

Can you please add more details to your question?

Do you want to export Table Data?

 

Appreciate your Kudos ✌️ !!

i want export visual data to csv

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors