Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Dear Experts
I made a reordering for the columns based on business standard for my organization , I made it successfully in Power bi through query editor , Then when I go to DAX studio to write it as (csv) format I found it Alphabetically ( I understand this is natural) , after writing the file through Dax Studio when I open the file I find the column ordering not as the one I made it in power bi query editor. The size of the file is big (3 GB) cannot be opened in excel to reordering it , below the MDAX file sample of the columns as I want it , Can any one guide me how to solve this problem?
The MDAX Code:
#"Reordered Columns" = Table.ReorderColumns(#"Removed Columns",{"order_id","quantity", "unit_price","returned_quantity","tax_exclusive_discount_amount_order_dt", "total_price_order_dt", "tax_exclusive_unit_price", "tax_exclusive_total_price", "void_reason","combo","combo_option_size","product_id", "is_ingredients_wasted","total_cost","sum_taxes_pivot_amount","sum_options_total_cost","sum_optional_taxes_pivot_amount", "status_detail","promotion", "original_order", "table", "driver", "customer", "customer_address", "discount", "coupon", "gift_card", "app_id", "promotion_id", "discount_type", "reference_x", "number", "type", "source", "status", "delivery_status", "guests", "kitchen_notes", "customer_notes", "business_date","subtotal_price", "discount_amount", "rounding_amount", "total price", "tax_exclusive_discount_amount", "delay_in_seconds", "opened_at", "due_at", "driver_assigned_at", "driver_collected_at", "closed_at", "created_at", "updated_at", "reference", "check_number", "branch_count", "table_count", "creator_count", "closer_count", "driver_count", "customer_address_count", "discount_count", "coupon_count", "tags_count", "promotion_count", "charges_count", "payments_count", "gift_card_count", "combos_count", "products_count", "original_order_count", "branch_id", "creator_id", "closer_id", "device_id", "customer_id", "customer_address_id", "discount_id", "coupon_id", "original_order_id", "closer", "creator", "meta", "accepted_at", "dispatched_at", "delivered_at", "customer_count","device_count", "payment_method_id_1" })
Solved! Go to Solution.
Instead of getting the desired order in your model table, you could do the following.
1. Made a table visual in Power BI Desktop with the columns in the desired order.
2. View the Performance Analyzer, refresh the visual and then copy the query.
3. Paste that query in DAX Studio.
4. Export your data.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Instead of getting the desired order in your model table, you could do the following.
1. Made a table visual in Power BI Desktop with the columns in the desired order.
2. View the Performance Analyzer, refresh the visual and then copy the query.
3. Paste that query in DAX Studio.
4. Export your data.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 18 | |
| 16 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 42 | |
| 40 | |
| 40 | |
| 40 |