Skip to main content
Announcements
Join us on Feb.12 to Discover what’s possible with embedded analytics: REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
aftabn10
Contributor III
Contributor III

How to Write a Variable for a Pie Chart with Multiple Fields

Hi, I am looking for some help in regards to writing a variable for a Pie Chart on my dashboard. I currently have the following variable for a KPI chart and this shows the latest weeks value but has the flexibility to change if a different week is selected.

=Sum({<week_date ={">=$(=Weekstart(max(week_date)))<=$(=Weekend(max(week_date)))"}>}total_calls)

Now for my pie chart, I want to show the different type of work that has been worked on during the week and this is through the 'source' column which has the following types. This will be my dimension(slice).

SOURCE
Calls
Email
Offline

The measure will show the number of 'touches' and is then displayed as a %. This works if I put the fields in, but I would like to write a variable so that it is dynamic but not sure how I do that.

Would appreciate any advice on how to move this forward.

10 Replies
aftabn10
Contributor III
Contributor III
Author

I have managed to get my volumes to show up correctly for the latest week in a table. The fix I had to make from the following expression was that I had to remove the "=" and then right values showed up.

Thanks for all your help.