Hi everyone, I'm trying to display within the same...
# gooddata-ui
s
Hi everyone, I'm trying to display within the same table metrics with LY comparison When I use the Filtre date > same period last year, figures are displayed in absolute value. I want them in % (+10% vs LY for instance) In the configuration section, I don't see the option to enable that (while it is available on other type of viz) I tried to create a calculated metric but I'm struggling with MAQL (ChatGPT as well) Does anyone here have a solution ? It seems like a pretty standard use case Thanks in advance
j
Hi Simon, when using the sdk have you set the number formatting? it should look something like this: import { newMeasure } from "@GoodData Linen/sdk-model"; const percentMeasure = newMeasure("yourMetricId") .alias("% Change vs LY") .format("#,##0.00%"); // 👈 This formats the value as percentage
s
Hi Joseph, thanks for the swift reply I can change the original metric into % but I don't see any possibility to change the automaticaly genereted Sales - SP year ago into %. Plus I'm not sure how to use this sdk functionnality Best
j
Hi Simon, I was under the impresion that you were working with the UI SDK as this is the channel for that. So, could you please confirm that you are just working with the cloud product? If so, you can try using number formatting. If this doesn't work, could you please send me a link to the report you are working on so we can take a look at it directly?
Hi Simon, I wanted to follow up here and see if your issues had been properly addressed here. Let us know if we can assist.