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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
JasMack
Frequent Visitor

Format cell row-wise instead of column-wise (field wise)

Hi all,

I have a table which looks as follows:

ParticularPrior Month (Period <2)Year to date
Cost450825
Revenue6901370
Profit %0.5333333330.660606061
Units Sold10700

 

But I want it to be formatted as the following table that is by row.

ParticularPrior Month (Period <2)Year to date
Cost £ 450.00 £ 825.00
Revenue£ 690.00 £ 1,370.00
Profit %53.33%66.06%
Units Sold10700


Can you please help me to achieve this?

Thanks.

Kind regards,
Jason

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @JasMack,

Current power bi does not support shows multiple formats in one value field, if you want to display different formats, you need to convert this field data type to text at first.

Then you can use Dax format to replace and format current results based on conditions.

Measure formulas:

P<2 = 
VAR currPart =
    SELECTEDVALUE ( 'Table'[Particular] )
VAR val =
    SUM ( 'Table'[Prior Month (Period <2)] )
RETURN
    FORMAT (
        val,
        IF (
            currPart IN { "Cost", "Revenue" },
            "Currency",
            IF ( currPart = "Profit %", "Percent", "Standard" )
        )
    )

YTD = 
VAR currPart =
    SELECTEDVALUE ( 'Table'[Particular] )
VAR val =
    SUM ( 'Table'[Year to date] )
RETURN
    FORMAT (
        val,
        IF (
            currPart IN { "Cost", "Revenue" },
            "Currency",
            IF ( currPart = "Profit %", "Percent", "Standard" )
        )
    )

1.PNG

FORMAT function (DAX) - DAX | Microsoft Learn

Regards,
Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @JasMack,

Current power bi does not support shows multiple formats in one value field, if you want to display different formats, you need to convert this field data type to text at first.

Then you can use Dax format to replace and format current results based on conditions.

Measure formulas:

P<2 = 
VAR currPart =
    SELECTEDVALUE ( 'Table'[Particular] )
VAR val =
    SUM ( 'Table'[Prior Month (Period <2)] )
RETURN
    FORMAT (
        val,
        IF (
            currPart IN { "Cost", "Revenue" },
            "Currency",
            IF ( currPart = "Profit %", "Percent", "Standard" )
        )
    )

YTD = 
VAR currPart =
    SELECTEDVALUE ( 'Table'[Particular] )
VAR val =
    SUM ( 'Table'[Year to date] )
RETURN
    FORMAT (
        val,
        IF (
            currPart IN { "Cost", "Revenue" },
            "Currency",
            IF ( currPart = "Profit %", "Percent", "Standard" )
        )
    )

1.PNG

FORMAT function (DAX) - DAX | Microsoft Learn

Regards,
Xiaoxin Sheng

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.