Forum Discussion
Remove square Brackets from column headers DAX Query
- Anonymous2 years ago
Hi eaj ,
Hmm. The square brackets are kinda needed as they separate the column name from the table name. However
You can try it:
$Results |export-csv -Path $ExportPath -NoTypeInformation (Get-Content -Path $ExportPath ) -replace '[\[\]]' |Set-Content -Path $ExportPathThis allows you to not include square brackets in the production csv file
The following post will help you:
Solved: Removing square brackets from column headers DAX q... - Microsoft Fabric Community
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi eaj ,
Hmm. The square brackets are kinda needed as they separate the column name from the table name. However
You can try it:
$Results |export-csv -Path $ExportPath -NoTypeInformation
(Get-Content -Path $ExportPath ) -replace '[\[\]]' |Set-Content -Path $ExportPath
This allows you to not include square brackets in the production csv file
The following post will help you:
Solved: Removing square brackets from column headers DAX q... - Microsoft Fabric Community
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.