Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
import valueFormatter = powerbi.extensibility.utils.formatting.valueFormatter;pbiviz.json:
...
let formatterOptions : utils.formatting.ValueFormatterOptions = {
value: 1000,
precision: 1,
cultureSelector: options.host.locale // "de-DE"
};
let formatter = valueFormatter.create(formatterOptions);
let v = formatter.format(2500); // gives 2,5K and not 2,5 Tsd. 😞
...Is there anything wrong with my code?
"externalJS": [ "node_modules/globalize/lib/globalize.js", "node_modules/globalize/lib/cultures/globalize.cultures.js",
...
Solved! Go to Solution.
It looks like postfix has not been localized for all of languages.
Please create a new bug in GitHub: https://github.com/Microsoft/powerbi-visuals-utils-formattingutils
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
It looks like postfix has not been localized for all of languages.
Please create a new bug in GitHub: https://github.com/Microsoft/powerbi-visuals-utils-formattingutils
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I'm using formatting utils with new powerbi-visual-tools 3 (beta) and get some behavior. When this bug will fix?
Did you face exactly the same issue?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
2 | |
2 | |
1 | |
1 |
User | Count |
---|---|
21 | |
2 | |
2 | |
2 | |
2 |