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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
gaby58
Regular Visitor

How to format data and export in the same format

Hi all,

 

  Please seebelowand let me know when I export the data whether it is possible to get the values in that format.

 

Thank you so much for any tips

 

                                                                            

RequiredDate (Format must be: YYYYMMDD)20230517                  
Partner ID0010                 
Program ID (4 Digits)1231          
Promotion ID (0 if not sure)1 
Payment Memo (64 characters max)  
 
  Recipient NameStreet Address       Location NotificationTaxableDirect ClaimOnline Registration   
Partner User IDEcount IDFirstMiddleLastSuffixLine 1Line 2CityStatePostalCountryHome PhoneMobile PhoneEmailCodeAmountIndicatorFlagFlagRequiredAccess LevelPassthrough 
(50 characters)(16 characters)(25 characters each)(26 characters each)(18 characters)(2 char. abbr.)(10 digits only)(2 char. ISO)(16 characters)(16 characters)(50 characters)(32 char. max)(10 digits max)(1, 0 or blank)(1, 0 or blank)(1, 0 or blank)(1, 0 or blank)(2 digits max.)(32 char. max.) 
123456 First Last 11122 test lane CypressTX123456US  test.one@ 11  11 1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
                       1
1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @gaby58 ,

You may consider using Table.TransformColumns() to convert the columns that need to determine whether they are 1 or 0 or null.

 

Some columns can be formatted on the desktop.

Date:

vcgaomsft_0-1684481954651.png

Parther ID:

vcgaomsft_1-1684482064388.png

FORMAT function (DAX) - DAX | Microsoft Learn

The data can then be quickly exported with the help of external tools.

Export Data | DAX Studio

Here we choose the Formatted File;

vcgaomsft_4-1684482594602.png

then run the query:

EVALUATE YourTableName

Open with Notepad

vcgaomsft_5-1684482667720.png

result:

vcgaomsft_6-1684482707201.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

1 REPLY 1
v-cgao-msft
Community Support
Community Support

Hi @gaby58 ,

You may consider using Table.TransformColumns() to convert the columns that need to determine whether they are 1 or 0 or null.

 

Some columns can be formatted on the desktop.

Date:

vcgaomsft_0-1684481954651.png

Parther ID:

vcgaomsft_1-1684482064388.png

FORMAT function (DAX) - DAX | Microsoft Learn

The data can then be quickly exported with the help of external tools.

Export Data | DAX Studio

Here we choose the Formatted File;

vcgaomsft_4-1684482594602.png

then run the query:

EVALUATE YourTableName

Open with Notepad

vcgaomsft_5-1684482667720.png

result:

vcgaomsft_6-1684482707201.png

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Power BI Header Change

Power BI Header Update

Read about the exciting updates for the Power BI forum.

Top Solution Authors
Top Kudoed Authors