Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Custom income statement visual not displaying when adding Format statement

I have created a custom income statement and everything is working fine except for the three calculations that are percentages instead of dollars.  The measure is formatted as percentage, but it's showing as dollars still.  When I try adding a Format ([Bal_GrossMargin],"0.0%"), statement, the visual stops displaying any data and says "Couldn't load the data for this visual."

 

Please see image of the measure and below that the overall measure for all of the lines.

(I currently am multiplying by 100 to at least get the percentage to show something)

PBI format Prob.jpg

9 REPLIES 9
Anonymous
Not applicable

Ok, I tried that: see results.

It looks like once I change a single format to %, it fails. 

Joninthepnw_0-1719938159416.png

 

lbendlin
Super User
Super User

using FORMAT converts the value to text. You would need to apply FORMAT to all your SWITCH choices.

Anonymous
Not applicable

When I do this format shown below, it works fine.  But the red highlighted boxes should be formatted "0.0%" and when I do that, it causes the visual to stop displaying.

Joninthepnw_0-1719936167642.png

 

looks like your locale needs this to be "0,0%"  ?

Anonymous
Not applicable

I changed the three margin formats from "0.0%" to "0,0%" and the visual is still not loading.

See below

Joninthepnw_0-1719938562302.png

 

I would consider using the dynamic measure formatting (you may have to enable this as it may still be a preview feature)  or to collect the value first and the depending on the selected measure format it as currency or percentage.

Anonymous
Not applicable

I have some more information.  I have five columns on my visual.  Line item description, current month of the Financial Value, prior month of the Financial Value, the variance between the two and the percentage change.  When I exclude the percentage change column, the formatting of the margins works ok.  But there seems to be a conflict when I add the last column of % changes.

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Anonymous
Not applicable

I decided to create a column that takes the values as a % of revenue to calculate the margins instead of trying to add them to the same column.  It's working just fine this way, so I'm just going with this.  I appreciate your help thus far.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors