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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PoweredOut
Resolver I
Resolver I

Is it possible to keep original number format when combing measures?

Good morning

 

I have use case where I have to show two types of information in one table.

 

In order to achieve this I combined two measures together. The first is in currencey format and the second in whole number format. 

 

When I put the measure into a visual, I get the reults I need, but I would like to show the combined measure reult in the original format of both measures.

 

Is this possible using DAX Format for example? I have tried using it, but I get an error

 

Thanks

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @PoweredOut ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1685513940334.png

Please try:

Measure3 = 
var _a = [Measure1]
var _b = [Measure2]
return FORMAT(_a,"Currency")&" "&INT(_b)

Final output:

vjianbolimsft_1-1685513951349.png

Best Regards,

Jianbo Li

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

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @PoweredOut ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1685513940334.png

Please try:

Measure3 = 
var _a = [Measure1]
var _b = [Measure2]
return FORMAT(_a,"Currency")&" "&INT(_b)

Final output:

vjianbolimsft_1-1685513951349.png

Best Regards,

Jianbo Li

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

FreemanZ
Super User
Super User

hi @PoweredOut 

try to create two measures with same code, but different format. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors