Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I attempted multiple measures to get the results i need. I can do either SUM or AVERAGE but not both. Where am i going wrong?
Solved! Go to Solution.
Hi @ybicalways79
Please try
FormatMetric OperationalSales =
VAR Val =
SUM ( SalesData[Value] )
VAR Ave =
AVERAGE ( SalesData[Value] )
RETURN
SWITCH (
SELECTEDVALUE ( SalesData[Attribute] ),
"Overall Sales", FORMAT ( Val, "$#,##0;($#,##0)" ),
"Overall Conversion (%)", FORMAT ( Ave, "0.0%" ),
"Overall Margin (%)", FORMAT ( Ave, "0.0%" ),
"Overall Lookup (Ct.)", FORMAT ( Val, "0" )
)
Hi @ybicalways79
Please try
FormatMetric OperationalSales =
VAR Val =
SUM ( SalesData[Value] )
VAR Ave =
AVERAGE ( SalesData[Value] )
RETURN
SWITCH (
SELECTEDVALUE ( SalesData[Attribute] ),
"Overall Sales", FORMAT ( Val, "$#,##0;($#,##0)" ),
"Overall Conversion (%)", FORMAT ( Ave, "0.0%" ),
"Overall Margin (%)", FORMAT ( Ave, "0.0%" ),
"Overall Lookup (Ct.)", FORMAT ( Val, "0" )
)
Thank you! I was so close on this one!
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |