Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Granz03
Contributor
Contributor

Create dynamic label

Use a dynamic label (YoY Sales <current year> vs. <prior year>) and display it in a KPI.

Labels (3)
4 Replies
anat
Master
Master

='YoY sales'&max(year) &'.vs'&max(year) -1

Granz03
Contributor
Contributor
Author

Hey thanks for you help still getting an error showing up 

Granz03_0-1705912826114.png

 

Rohan
Specialist
Specialist

Hi @Granz03 ,

By "year", @anat  meant to use the field in your data model which denotes Year. If no such column is present then use :

year(max(Date_Field))

 

Regards,

Rohan.

anat
Master
Master

as suggested by @Rohan ,use your field names in the above expression