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
Anonymous
Not applicable

format data after transpose table

Hi,

I got the data from source in this format:

mypowerbi1_2-1655102653625.png

 

I have applied transpose table on this and now data is coming as per the expectation :

mypowerbi1_3-1655102688690.png

 

I am experiencing trouble to format the individual row's values. Avg Sale value should be in % format, Total sales should have $ before the value, Pending sshould be decimal but all this not possible because these are not column but rows. 

I have tried to set formating in power query 1 step before the transpose table but it got vanished after transpose table step.

 

Please suggest how to set the formatting for as required above.

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

It is not possible to display multiple different formats on the same column. You can use the format() function to convert the table to the form you want after Unpivoting the table, but both are text types.

Here are the steps you can follow:

1. In the power query, except [Group], the rest are selected – Unpivot Columns.

vyangliumsft_0-1655368102621.png

2. Create measure.

Measure =
SWITCH(
    TRUE(),
    MAX('Table2'[Attribute])= "Total sales",FORMAT( MAX('Table2'[Value]),"$#,##0"),
    MAX('Table2'[Attribute])= "Pending",FORMAT(MAX('Table2'[Value]),"Fixed"),
    MAX('Table2'[Attribute])="Avg Sale",FORMAT(MAX('Table2'[Value]),"Percent"),
    FORMAT(MAX('Table2'[Value]),"General Number")
    )

3. Result:

vyangliumsft_1-1655368102623.png

 

Best Regards,

Liu Yang

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

3 REPLIES 3
Anonymous
Not applicable

Hi  @Anonymous ,

It is not possible to display multiple different formats on the same column. You can use the format() function to convert the table to the form you want after Unpivoting the table, but both are text types.

Here are the steps you can follow:

1. In the power query, except [Group], the rest are selected – Unpivot Columns.

vyangliumsft_0-1655368102621.png

2. Create measure.

Measure =
SWITCH(
    TRUE(),
    MAX('Table2'[Attribute])= "Total sales",FORMAT( MAX('Table2'[Value]),"$#,##0"),
    MAX('Table2'[Attribute])= "Pending",FORMAT(MAX('Table2'[Value]),"Fixed"),
    MAX('Table2'[Attribute])="Avg Sale",FORMAT(MAX('Table2'[Value]),"Percent"),
    FORMAT(MAX('Table2'[Value]),"General Number")
    )

3. Result:

vyangliumsft_1-1655368102623.png

 

Best Regards,

Liu Yang

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

rajulshah
Resident Rockstar
Resident Rockstar

Hello @Anonymous ,

 

This is only possible using Power BI measures and then formatting the measures as you want. We cannot have multiple data types for a single column.

SanketBhagwat
Solution Sage
Solution Sage

Hi @Anonymous 
Data type format in Power BI is according to column and not rows.

Please refer the below link;
https://community.powerbi.com/t5/Desktop/Format-on-Row-but-not-columns/m-p/65683


If this post helps, then mark it as "Accept as Solution" and give it a thumbs up.

Helpful resources

Announcements
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.

Top Kudoed Authors