This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 22 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 28 | |
| 22 | |
| 22 |