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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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