I have a specific use case where I am trying to get the percentage of people meeting a handle time goal (PPMG metric), I have used the same logic to create the metric in QuickSight dashboard but in AmazonQ topic, I am not getting the data as expected while. I am using the below logic in calculated field,
ifelse(sumOver(sum({Handle Time Without Outliers})/sum({Resolves Without Outliers}),[{Function Name},Login,{Week number}])<=sumOver(sum({Handle Time Target})/sum({Resolves Without Outliers}),[{Function Name},Login,{Week number}]),distinct_count(Login),0)/distinct_count(Login)
this is not giving any output. Please note that my dataset has multiple records at people/associate level at week granularity and I am trying to get a combined result at a week level. The above calculation is working fine with dashboard but not working as expected in AmazonQ topic. Looking for a suggestion here
Hi @ayantik and welcome to the QuickSight community!
By not giving an output, is it giving incorrect information or is it just returning a screen that says it cannot answer your question?
A couple preliminary questions:
How did you name the calculated field and what question did you ask? Sometimes that can affect whether the system understands to use your calculated field or not based on your language.
But beyond that, since the calculated field is working in your dashboards (and being accepted without errors when built in your topic I presume), my initial thought is that it may have something to do with how the fields being utilized in the calculation are setup in the topic.
A couple things to confirm in the âData Fieldsâ section:
Are there any filters applied to the topic that could affect the calculated field?
Are all of the fields being utilized in the calculation marked as âincludedâ
Is each field role setup correctly as a measure or dimension?
Are the aggregation types setup to hinder your calculation?
Hi @Brett thanks for your reply, please find the answer below,
Itâs showing as âINVALID_DATAPREP_SYNTAX, GENERIC_DATA_SOURCE_EXCEPTIONâ while I am running a value preview. Also while asking questions about this field, I am getting tis exception âYour question cannot be answered.â
The calculated field is named the same which I used in the question and I can see itâs mapping the correct field,
I have no filters applied,
all the fields used in the calculation are marked included,
roles are set up correctly.
It might be an issue with aggregation I believe but I am not able to identify.
hereâs the snippet of the field set up,
Hi @ayantik,
Apologies I missed your last response! So receiving that error in the value preview section is not abnormal, there are scenarios will you will encounter that but when asking a question, the calc. field will work as expected, but receiving a response like âyour question cannot be answeredâ is a bit more concerning.
By chance, do you have any of the fields being used in the calc. field turned off in the topic?
Out of curiosity, how are you wording the question when receiving the âcannot be answeredâ prompt?
Hi @ayantik,
Following up here as itâs been awhile since we last heard from you. Were you able to find a work around for your case or are you still working on this?
If we do not hear back within the next 3 business days, Iâll close out this topic.