Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain the Sort order when exporting to CSV #561

Open
saurabhabh opened this issue Dec 20, 2022 · 1 comment
Open

Maintain the Sort order when exporting to CSV #561

saurabhabh opened this issue Dec 20, 2022 · 1 comment
Labels
area-ExportData awaiting reply More information is needed bug Something isn't working

Comments

@saurabhabh
Copy link

Describe the problem

When exporting to csv the data is not sorted according to the source table.

Bravo version

1.0.1

Tabular model

Power BI Desktop, import mode

Power BI

Version: 2.110.1161.0 64-bit (October, 2022)

Steps to reproduce the behavior

1 - Open the Power BI file
2 - Go to External tab and open the BRAVO
3 - click on export data
4 - Export data as CSV

The data that is exported is not sorted as per the source table.

Additional context

Trying to export more than 10 lakh rows hence have to use the export to csv.

Screenshots

No response

Anything else ?

No response

@saurabhabh saurabhabh added bug Something isn't working untriaged A new issue requiring triage labels Dec 20, 2022
@albertospelta
Copy link
Collaborator

Hi @saurabhabh, Bravo does not include any sorting clause (ORDER BY) in the DAX query used for data extraction - the DAX statement executed is a simple EVALUATE <table>. If an ORDER BY clause is not specified, the sort order of the result is undefined and cannot be trusted - this is the default behaviour of the DAX query engine.

Trying to export more than 10 lakh rows hence have to use the export to csv.

Would it be possible for you to use XLSX export as an alternative option? The XLSX export has a limit of 1 million rows per table.

@albertospelta albertospelta added awaiting reply More information is needed and removed untriaged A new issue requiring triage labels Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ExportData awaiting reply More information is needed bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants