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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors