This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 May 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 |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 28 | |
| 24 | |
| 22 |