March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Everyone, I'm using the below SWITCH code to format a value depending whether it's a percentage or a whole number. Basically I want to show values with a % with a decimal and whole numbers as whole numbers. For some reason though when I include this in the table it generates two lines for each item in the list where it should be showing just one. This then impacts the charts linked to the table.
Any thoughts on what might be the cause of this as I am out of ideas. Thanks.
Solved! Go to Solution.
@MCosenza , is this measure or column. In case it is measure, I think it should only show one row
If these are measures value and measure type, a measure can be
Formatted Actual = SWITCH (
TRUE(),
max('KPI Actuals'[Measure Type]) = "%", FORMAT(Sum('KPI Actuals'[value]), "0.0") & "%",
Max('KPI Actuals'[Measure Type]) = "No", FORMAT(Sum('KPI Actuals'[value]), "0"),
BLANK()
)
@MCosenza , is this measure or column. In case it is measure, I think it should only show one row
If these are measures value and measure type, a measure can be
Formatted Actual = SWITCH (
TRUE(),
max('KPI Actuals'[Measure Type]) = "%", FORMAT(Sum('KPI Actuals'[value]), "0.0") & "%",
Max('KPI Actuals'[Measure Type]) = "No", FORMAT(Sum('KPI Actuals'[value]), "0"),
BLANK()
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |