Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I am trying to add a "+" and/or "-" symbol infront of highlighted metric. The "-" symbol adds automatically it seems however the "+" does not. I have tried using below DAX which works in adding the "+" sign fine but not adding the text "vs last year YTD" section. Any ideas what i need to change to make it work? The final result i need is: +30% vs last year YTD.
PY_YoY_Diff_Intl =
FORMAT (
CALCULATE (
[AY_2021 vs AY_2022 YTD (%)],
CountryMapping[Region_L1] = "International",
'Calendar'[FutureDate] = "Past"
), "+0.0%;-0.0%" & " vs last year YTD")
Solved! Go to Solution.
Hi @adam_macs ,
I recommend that you have that logic on a measure on its own. E.g.
PY_YoY_Diff_Intl =
FORMAT (
CALCULATE (
[AY_2021 vs AY_2022 YTD (%)],
CountryMapping[Region_L1] = "International",
'Calendar'[FutureDate] = "Past"
)
Then place this measure in the format measure:
Proud to be a Super User!
Hi,
You can use IF and FORMAT to achieve this:
Proud to be a Super User!
thanks @ValtteriN , it kind of works, however i dont seem to be able to add the filtering on CountryMapping and FutureDate. Any ideas for a way around this?
Hi @adam_macs ,
I recommend that you have that logic on a measure on its own. E.g.
PY_YoY_Diff_Intl =
FORMAT (
CALCULATE (
[AY_2021 vs AY_2022 YTD (%)],
CountryMapping[Region_L1] = "International",
'Calendar'[FutureDate] = "Past"
)
Then place this measure in the format measure:
Proud to be a Super User!