cancel
Showing results for 
Search instead for 
Did you mean: 
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
Community Champion
Community Champion

hi @PoweredOut 

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

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors