Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
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:
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!
Solved! Go to Solution.
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:
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:
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.
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:
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:
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |