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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jmuthukumaran
Frequent Visitor

Multiple formats in a single column

Team , 

 

I am getting data as below from excel , but the challenge is "order, Ship and cuts" rows are in number format where as CFR(cars) , CFR(Trucks) and Target % rows are in percentage, Is it possible to have the same in Power bi desktop after consuming the excel.

jmuthukumaran_0-1649209746169.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jmuthukumaran ,

 

In Power BI, if a column contains number and and percentage, I think the type of the column would be text format.

vstephenmsft_0-1649754971195.png

This is not recommended at all. Please use seperate columns.

 

Best Regards,

Stephen Tao

 

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

4 REPLIES 4
Anonymous
Not applicable

Hi @jmuthukumaran ,

 

In Power BI, if a column contains number and and percentage, I think the type of the column would be text format.

vstephenmsft_0-1649754971195.png

This is not recommended at all. Please use seperate columns.

 

Best Regards,

Stephen Tao

 

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,

I am not sure how your data model looks like, but I tried to create a sample pbix file like below.

I hope the below can give some ideas on how to create a measure and apply it to your data model.

Please check the below picture and the attached pbix file.

 

Picture1.png

 

Expected outcome measure: =
IF (
    HASONEVALUE ( Category[Category] ),
    SWITCH (
        SELECTEDVALUE ( Category[Category] ),
        "CFR",
            FORMAT (
                DIVIDE (
                    CALCULATE ( SUM ( Data[Value] ), Category[Category] = "ship" ),
                    CALCULATE ( SUM ( Data[Value] ), Category[Category] = "order" )
                ),
                "#0.00%"
            ),
        SUM ( Data[Value] )
    )
)

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thanks for the reply , in my case i have months (Jan , Feb etc ) in columns do i need to create measures for each month separately or with 1 measure it will get applied across months 

Hi,

Thank you for your message.
Without seeing your data model, it is quite difficult for me to tell the answer, but in my opinion, in general situation, one measure will work fine.

Thank you.


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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 Solution Authors
Top Kudoed Authors