The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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