hello I have a format problem between the list and powerapps.
the value is a calculated value in the list: ok
problem display in powerapps adds bcp of 0.
list = 2632.50
powerapps 2632.50000
how to display the correct value 2632.50 in powerapps.
the problem is only on calculated values of sharepoint lists.
Solved! Go to Solution.
Hi @RandyHayes
I think the cause of this problem is that the SharePoint connector is returning text values in English format, which is evidenced by the values "2632.5000" and "4110.0000" in the earlier screenshots.
In this case, the value function expects inputs in French locale (eg "2632,5000" and "4110,0000"), and this is the reason why the conversion fails and returns 0.
I'm quite certain this would solve the problem
Round(
Value(
Substitute(
ThisItem.PVU; "."; ",")
);
2
)
However, I'm a bit loathe to suggest it because I would prefer not to hardcode a dependency on the SharePoint input being in English format. Is there an alternative you could suggest here?
There is an issue in Power Apps where calculated columns don't format correctly. There are more details in this post here.
This formula should return the value to 2 decimal places:
Round(
Value(ThisItem.PA),
2
)
The French equivalent of the formula looks like this:
Round(
Value(ThisItem.PA);
2
)
with
Text (ThisItem.PVU; "#. ##")
no change
Round (
Value (ThisItem.PA);
2
)
I read the link but it displays 0
yes i try and display = 0
Use simply Value(ThisItem.PA) if that returns 0, then place your cursor after the PA in the formula and see what type of data PowerApps is thinking your column is...Number or Text? It should be showing as Text (which is part of the long known issue).
I hope this is helpful for you.
Hi @RandyHayes
I think the cause of this problem is that the SharePoint connector is returning text values in English format, which is evidenced by the values "2632.5000" and "4110.0000" in the earlier screenshots.
In this case, the value function expects inputs in French locale (eg "2632,5000" and "4110,0000"), and this is the reason why the conversion fails and returns 0.
I'm quite certain this would solve the problem
Round(
Value(
Substitute(
ThisItem.PVU; "."; ",")
);
2
)
However, I'm a bit loathe to suggest it because I would prefer not to hardcode a dependency on the SharePoint input being in English format. Is there an alternative you could suggest here?
User | Count |
---|---|
122 | |
86 | |
83 | |
74 | |
69 |
User | Count |
---|---|
215 | |
179 | |
140 | |
108 | |
83 |