Forum Discussion
Formatting multiple columns at the same time?
I do not believe that is possible. In general, you cannot format a datatype in Power Query without changing the datatype to a text string. This is different from Power BI and/or Excel where you can format a number or date in a variety of ways, and it still remains a number or date. If just for display purposes, you can use Number.ToText for certain types of formatting, but you would have to construct a string if you wanted to display negative numbers with (). Again, these values will not be numeric and would need to be converted back to numbers if you were to use them in a subsequent calculation.
- Dimani3 years agoHelper II
Thanks for your information. We were wishing there was an easier way. I will discuss this with my colleague to see if we want to use this approach, knowing that when we need to perform calculation, we will need to convert the data back to numeric.
- ronrsnfld3 years agoSuper User
In general, I think of PQ as something used to shape your data, and Power BI to display formatted reports. Trying to do the formatting in PQ would be an inefficient use of the tool.