Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I would like to ask for help with the following problem.
I have 3 numeric columns (menny, btknettoar, btkbruttoar), all columns are decimal value with 4 digits after comma and i would like to concatenate together.
I use the following:
"Mennyiség: " & Number.ToText(Number.Round([menny],2)) & " Nettó ár: " & Number.ToText (Number.Round([btknettoar],2)) & " Bruttó ár: " & Number.ToText (Number.Round([btkbruttoar],2))
The result:
Mennyiség: 12.0000 Nettó ár: 491.0000 Bruttó ár: 623.5700
I would like to get the following (only 2 digits after comma):
Mennyiség: 12.00 Nettó ár: 491.00 Bruttó ár: 623.57
Is it possible to format the values? The original colums cannot be formated to use only 2 digits, i need all 4 digits for other purposes, so that is not an option.
Thank you.
Solved! Go to Solution.
Hey @Akos9207,
You could use the FIXED function. Rounds a number to the specified number of decimals and returns the result as text. You can specify that the result be returned with or without commas.
hi @Akos9207
try to wrap with Number.RoundUp:
https://learn.microsoft.com/en-us/powerquery-m/number-roundup
Hey @Akos9207,
You could use the FIXED function. Rounds a number to the specified number of decimals and returns the result as text. You can specify that the result be returned with or without commas.
Thank you.
| User | Count |
|---|---|
| 55 | |
| 37 | |
| 26 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 58 | |
| 39 | |
| 21 | |
| 21 |