We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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 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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 25 |