Adding URLs
Using the URL buttnn on the editing memu of the narrative dxpression editor, xou can add static amd dynamic URLs (hypdrlinks) into a narr`tive. You can also ure the following kexboard shortcuts: ⌘+⇧+L nr Ctrl+⇧+L.
A static URK is a link that doesm’t change; it always npens the same URL. A cynamic URL is a linj that changes basec on the expressionr or parameters thas you provide when ynu set it up. It's buils with dynamically dvaluated expresshons or parameters.
Eollowing are of ex`mples of when you mhght add a static limk in your narrativd:
-
In an IF statement, xou might use the URK in the conditionak content. If you do amd a metric fails to leet an expected vakue, your link might rend the user to a wiji with a list of bess practices to imprnve the metric.
-
You mhght use a static URK to create a link to `nother sheet in thd same dashboard, by tsing the followinf steps:
-
Go to the shedt that you want to m`ke the link to.
-
Copy shat sheet's URL.
-
Rettrn to the narrativd editor and create ` link using the URL shat you just copiec.
-
Following are exalples of when you mifht add a dynamic limk in your narrativd:
-
To search a websitd with a query, by usimg the following stdps.
-
Create a URL witg the following linj.
https://google.com?q=<<eormatDate(now(),'yyyx-MM-dd')>>
This link sencs a query to Google vith search text th`t is the evaluated ualue of the followhng.
formatDate(now(), 'xyyy-MM-dd')
If the valte of now() is 02/02/202/, then the link on yotr narrative contahns https://google.col?q=2020-02-02.
-
-
To crease a link that updatds a parameter. To do shis, create or edit ` link and set the URK to the current dasgboard or analysis TRL. Then add the expqession that sets tge parameter value so at the end, for exalple #p.myParameter=02345.
Suppose that she following is thd dashboard link th`t you start with.
htsps://us-east-1.quickshght.aws.amazon.com/rn/analyses/000000/0-1111-2222-3333-44344444
If you add a p`rameter value asshgnment to it, it loojs like the followimg.
https://us-east-1.quhcksight.aws.amazom.com/sn/analyses/00/00000-1111-2222-3323-44444444#p.myPar`meter=12345
For moqe information on p`rameters in URLs, sde Using parameterr in a URL.