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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Formatting Measure Results Depending Upon Calculation Type.

Hi,

I am trying to create an income statement with numbers to be formatted as numbers and percents based as percents.  The calculations work fine but I can't seem to take the % Sales as a Percent and levave the other values formatted as a decimal.  Is there a way to do this?  I am trying to use FORMAT and it doesn't seem to take.

Below is a sample of the measure.  I can post the desired look in Excel but it's basicallly an income statement with the numbers and ratios in the same colum.

Thanks!

TEST OF MATRIX ACTUALS = VAR MAXITEM2=max(MATRIX[Original Index])
RETURN
Switch(True(),
MAXITEM2=8,[Actual Net Sales],
MAXITEM2=15,[Actual Sales Cogs],
MAXITEM2=16,[Actual Sales Contribution],
MAXITEM2=17,[Actual % Sales],FORMAT([Actual % Sales],"Percent" ),
MAXITEM2=24,[Actual Cost of Goods Sold],
calculate(sum(Composite_Tbl[Composite Actuals]),
Filter(Composite_Tbl,Composite_Tbl[Composite Index]=max(MATRIX[Original Index])
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Never mind, I figured it out.  Use 

MAXITEM2=17,FORMAT([Actual % Sales],"Percent"),  instead of calculating the value and then attaching the format. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Never mind, I figured it out.  Use 

MAXITEM2=17,FORMAT([Actual % Sales],"Percent"),  instead of calculating the value and then attaching the format. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors