Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi Experts
See the following measure - i need to format the [% Within 6 Weeks] measure inside the switch to show as percentage values in the table - as opposed to 1 and 0 (ref to "D")
DAX Measure
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
Result (Switch) =
IF (
HASONEVALUE ( DimMetricTable[KPI] ),
SWITCH (
SELECTEDVALUE ( DimMetricTable[KPI] ),
"A", [Under 6 Week],
"B", [Over 6 Week],
"C", [Total Wait List],
"D", FORMAT ( [% Within 6 Weeks], "Percent" ),
"E", [Maxium Wait (in weeks)],
"F", [Activity_],
"G", [With D Codes],
"H", [Without D Codes],
BLANK ()
)
)
Output:
Note: After using FORMAT() , the type of this value will be converted to Text.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try:
Result (Switch) =
IF (
HASONEVALUE ( DimMetricTable[KPI] ),
SWITCH (
SELECTEDVALUE ( DimMetricTable[KPI] ),
"A", [Under 6 Week],
"B", [Over 6 Week],
"C", [Total Wait List],
"D", FORMAT ( [% Within 6 Weeks], "Percent" ),
"E", [Maxium Wait (in weeks)],
"F", [Activity_],
"G", [With D Codes],
"H", [Without D Codes],
BLANK ()
)
)
Output:
Note: After using FORMAT() , the type of this value will be converted to Text.
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , If you have created a measure slicer, I would advise to use filed parameters released in May 2022
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 122 | |
| 120 | |
| 38 | |
| 36 | |
| 29 |