Forum Discussion
Poisedon
7 years agoFrequent Visitor
Read 2 type of file simultaneously
Hi all,
I made my report that read a .xlsx file but sometimes it may be a .txt file with same columns. I'd like to know if is possible to set Query editor in order to read 2 type of different file (.xlsx or .txt) depending for what I have, maybe with an "if" command or similar.
1 Reply
- v-yuta-msft
Community Support
Poisedon ,
Power bi desktop doesn't have this feature. However, you may use powershell to write a script which may meet your requirement.
About the reference of Cmdlets of power bi for powershell, please refer to:
https://docs.microsoft.com/en-us/powershell/power-bi/overview?view=powerbi-ps
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.