Forum Discussion
Format function causing blankbar chart
- 3 days ago
Hello powerbiexpert22
The format function convert your measure from Numeric value to a text
A table can display Text but not your chartI see two options to fix your issues:
If you have permission to modify the semantic model, implement a dynamic format string in the model (best solution).
Create two measures
Value Measure = [PCD CY Actuals USD] --> For your chart Formatted Measure = --> For your table VAR CYActuals = [PCD CY Actuals USD] RETURN SWITCH( TRUE(), CYActuals < 1000000, FORMAT(CYActuals,"#,.0K"), CYActuals < 1000000000, FORMAT(CYActuals,"#,,.0M"), FORMAT(CYActuals,"#,,,.0B") )Then in your chart:
Format pane → Y-axis → Display units
Hi Cookistador , is there a way to apply this formatting at report level , i do not want to apply this formatting at semantic model level since it may impact other reports
- v-achippa13 hours ago
Community Support
Hi powerbiexpert22,
Dynamic format strings cannot currently be applied to report-level measures in a live-connected report. If you do not want to modify the shared semantic model, use the original numeric measure in the chart and configure the Y-axis Display units to Auto or the required unit. This setting applies only to that visual.
For reference, follow the below documentation:
Create dynamic format strings for measures - Power BI | Microsoft LearnThanks and regards,
Anjan Kumar Chippa