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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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