Forum Discussion
Displaying data
- 1 year ago
Ikalaus , Try using
DAX
Formatted_Revenue =
VAR KPI_Name = TRIM(SELECTEDVALUE(KPI_budget[KPI], "Unknown"))
VAR Is_Percentage =
KPI_Name IN {"Service Margin %", "Gross Margin %", "EBITDA %", "C/R %"}
VAR Raw_Value =
CALCULATE(
SUM(KPI_budget[Revenue_budget]),
ALLEXCEPT(KPI_budget, KPI_budget[KPI], KPI_budget[fin_kpi])
)
VAR Percent_Value = Raw_Value * 100
RETURN
IF(
Is_Percentage,
FORMAT(Percent_Value, "0.00") & "%", -- Format the percentage without $ symbol
FORMAT(Raw_Value, "$#,##0.00")
)
Thanks! i find another way to fix
Hi Ikalaus ,
Since your issue appears to be resolved, kindly mark the relevant response as the accepted solution. This helps other community members quickly find answers to similar problems.
Thank you for your support and collaboration!
Regards,
B Manikanteswara Reddy