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

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

Reply
niculeica
Helper I
Helper I

Multiple Data formats in the same Metric

Hi! Having some issues when displaying a metric with multiple data formats (Percent & Currency: "€ #,##0"). The format formula I'm using is below (Format is set to Dynamic beforehand).

 

IF(MAX(_RevenueSources[Revenue Type])="Target Attainment Rec. Rev. (Month)"||MAX(_RevenueSources[Revenue Type])="Target Attainment Rec. Rev. (YTD)",
FORMAT([_Revenue Amount raw2],"Percent"),
FORMAT([_Revenue Amount raw2],"€ #,##0"))
 
Basically, when Revenue Type is a form of Attainment, I want it to show me Percentages, else custom currency format "€ #,##0". However, for Revenue Type different than Attainment, numbers are getting messed up. I'm attaching what is currently showing (in this order) and what the numbers should be. Any idea what might be the problem?
 
niculeica_0-1713866259892.png

 

 

 

niculeica_1-1713866326295.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @niculeica ,

I create a table as you mentioned.

vyilongmsft_0-1713935949681.png

Then I create two calculated columns. Here are the DAX codes.

Column = FORMAT('Table'[Number],"0.00%")
Column 2 = FORMAT('Table'[Score],"€ #,##0")

vyilongmsft_1-1713936144942.png

Then I put it into the matrix table. It will give you what you want.

vyilongmsft_2-1713936268097.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @niculeica ,

I create a table as you mentioned.

vyilongmsft_0-1713935949681.png

Then I create two calculated columns. Here are the DAX codes.

Column = FORMAT('Table'[Number],"0.00%")
Column 2 = FORMAT('Table'[Score],"€ #,##0")

vyilongmsft_1-1713936144942.png

Then I put it into the matrix table. It will give you what you want.

vyilongmsft_2-1713936268097.png

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.