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
mrothschild
Continued Contributor
Continued Contributor

MATRIX formatting with mixed data types

For ease of explanation, this is a simplification of the problem I'm trying to solve, so hopefully the solution will expand to meet the final needs.

 

The data I'm pulling into PowerBI from Excel looks like this and that's how I'd like it to look in a PowerBI Matrix.

mrothschild_0-1721778668757.png

 

In that attempt, I created a Measure with the following code: 

zzMarked_LRF_Text = 

FORMAT(
IF(
    ISFILTERED ( 'Fund I Investment Schedule'[Project] ) ,
        VALUES ( 'Fund I Investment Schedule'[Marked LRF] ),
    BLANK ()
),"0.00%")

 

But the output in the BI Matrix looks like this:

mrothschild_1-1721778846832.png

The PowerQuery data is pulling the Excel data as text (which is likely required).

 

How can I format the Matrix to show the data in 0.00% format?

 

Thanks!

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @mrothschild 

I am glad to help you.   

 

According to your description, you want to know how can you format the Matrix to show the data in 0.00% format? 

  

If I understand you correctly, then you can refer to my solution.  

 

In your Measure, you might consider adding a judgment to convert data that can be converted to a percentage to a percentage. 

 

You can refer to my Measure formula, I hope it helps you: 

vfenlingmsft_0-1721789540395.png

 

zzMarked_LRF_Text1 = 
IF (
    ISFILTERED ( 'Fund I Investment Schedule'[Project] ),
    VAR value_ =
        VALUES ( 'Fund I Investment Schedule'[Marked LRF] )
    RETURN
        IF (
            ISERROR ( VALUE ( value_ ) ),
            value_,
            FORMAT ( VALUE ( value_ ), "0.00%" )
        ),
    BLANK ()
)

 

Here is my test result: 

vfenlingmsft_1-1721789540399.png

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


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

Hi, @mrothschild 

I am glad to help you.   

 

According to your description, you want to know how can you format the Matrix to show the data in 0.00% format? 

  

If I understand you correctly, then you can refer to my solution.  

 

In your Measure, you might consider adding a judgment to convert data that can be converted to a percentage to a percentage. 

 

You can refer to my Measure formula, I hope it helps you: 

vfenlingmsft_0-1721789540395.png

 

zzMarked_LRF_Text1 = 
IF (
    ISFILTERED ( 'Fund I Investment Schedule'[Project] ),
    VAR value_ =
        VALUES ( 'Fund I Investment Schedule'[Marked LRF] )
    RETURN
        IF (
            ISERROR ( VALUE ( value_ ) ),
            value_,
            FORMAT ( VALUE ( value_ ), "0.00%" )
        ),
    BLANK ()
)

 

Here is my test result: 

vfenlingmsft_1-1721789540399.png

 

 

I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.


Best Regards,
Fen Ling,


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

Thanks!  Works perfectly!

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.