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
powerbiasker
Helper IV
Helper IV

How to format a specific row as Currency in a Table visual with Power BI Desktop?

Hi,

 

I am using Power BI Desktop.

 

How to format a specific row as Currency in a Table visual?

 

For example, I want to format the 2nd row values as Currency (i.e. add a $ sign) in the following Table. Is this possible?

chart1.PNG

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

Hi @powerbiasker ,

Try the following formula:

Measure = 
IF(
    MAX('Table'[id])="B",
    CURRENCY(SUM('Table'[value])),
    FORMAT(
        SUM('Table'[value]),
        "0"
    )
)

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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-kkf-msft
Community Support
Community Support

Hi @powerbiasker ,

Try the following formula:

Measure = 
IF(
    MAX('Table'[id])="B",
    CURRENCY(SUM('Table'[value])),
    FORMAT(
        SUM('Table'[value]),
        "0"
    )
)

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

 

Jihwan_Kim
Super User
Super User

Hi, @powerbiasker 

In some cases, it is possible by using Tabular Editor in Power BI.

If it is OK with you, can you share your sample pbix file? Then I can try to come up with a desirable solution. 

 

Thanks.

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


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.