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: 
ecems
Contributor II
Contributor II

Select exact value in pivot with a variable

Hi everyone,

I want to select a specific value in a pivot; I use this expression and it works

{<GROUP={'Group1'},Category={'Complaint'}, Year={'2023'},Month={'2'}>}Count(TICKET_ID)

But; I dont want to change script every month; so I want to use a variable in this script but it doesnt work. Instead of Month={'2'}; I tried:

  • Month={($(vmonthtoday))} ,
  • Month=month(today())

How can I solve this problem?

Thanks

Labels (3)
1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below

{<GROUP={'Group1'},Category={'Complaint'}, Year={'2023'},Month={'$(=Month(Today()))'}>}Count(TICKET_ID)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi

Try like below

{<GROUP={'Group1'},Category={'Complaint'}, Year={'2023'},Month={'$(=Month(Today()))'}>}Count(TICKET_ID)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
ecems
Contributor II
Contributor II
Author

Yeyyy, It works! Thanks a lot 🙂