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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to export Power BI report to Text file using any automation process

Hi My Dear friends,

 

Please help me out, How can i Power BI report export into text file using any automation process.

 

Text file result should be Ex :- 09212022 # 2345 # 13343534667# India

                                            09222022 # 12 # 335454 # USA

                                            09222022 # 12 # 335454 # UK

between the row after row " #"  symbol should be display.

 

Many Thanks for advance.😍.

2 ACCEPTED SOLUTIONS

Hi @Anonymous ,

 

Maybe you can try python visual and with this code:

vchenwuzmsft_0-1663926935830.png

and hide the python visuals. It will run and output every time you quote or do some slicing, so please consider adding a bookmark or button to refresh this python visual separately

Result:

vchenwuzmsft_1-1663927095027.gif

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @Anonymous ,

 

Please use pip install matplotlib and pandas packages. They must be installed

 

Best Regards

Community Support Team _ chenwu zhu

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Thanks so much Chen for given solution..

v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

The power bi exports  data file only support csv file. You can open the csv file with Notepad and then replace the , with #.

vchenwuzmsft_1-1663917950043.png

 

vchenwuzmsft_0-1663917900517.png

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I have done this already, but need automation process right, if one click, stockholders want to see the txt file 

Hi @Anonymous ,

 

Maybe you can try python visual and with this code:

vchenwuzmsft_0-1663926935830.png

and hide the python visuals. It will run and output every time you quote or do some slicing, so please consider adding a bookmark or button to refresh this python visual separately

Result:

vchenwuzmsft_1-1663927095027.gif

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I will check this and let you know the status. Many thanks for replying sir.

Anonymous
Not applicable

HI Chen,

I trying to following your's python code , but it's throwing error, kindly correct me if i am doing anything worng on this.

PFB the screenshot of code and error.

areddye_0-1664206860773.png

 

 

Hi @Anonymous ,

 

Please use pip install matplotlib and pandas packages. They must be installed

 

Best Regards

Community Support Team _ chenwu zhu

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.