Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
mohiahmed
Contributor III
Contributor III

Help with a chart expressions

All

I need help with a expression on line chart.  I want to show "=[Metric(Result)]" and need to select the following to show only those criteria's in the chart. 

However I can't seem to and having errors as soon I use this =({<[Metric(Result)],IGA = {'UK_35'},[Service ID]={'PCEN06'},[SLA ID]= {'SL01.UK.BI'}>})

Can you please let me know where I am going wrong.

Thanks

Mohi

1 Solution

Accepted Solutions
stigchel
Partner - Master
Partner - Master

Sorry, I copied the expression too fast, it's missing the field

Only({<IGA = {'UK_35'},[Service ID]={'PCEN06'},[SLA ID]= {'SL01.UK.BI'}>} [Metric(Result)])

View solution in original post

9 Replies
sudhakar_budde
Creator
Creator

Hi Mohiuddin,

I guess you are trying to perform a Set Analysis, if so try similar expression as below:


SUM({$<IGA = {'UK_35'}, [Service ID]={'PCEN06'}, [SLA ID]= {'SL01.UK.BI'}>} [Metric(Result)])


You can always refer to the help here:

https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/SetAnalys...

Can you please post your question with more details next time?

Hope this helps you...

Regards

SB

kfoudhaily
Partner - Creator III
Partner - Creator III

hello, I think you're not providing enough information to be able to respond correctly to your request.

what does the expression "[Metric(Result)]" stands for?

is it the metric in your fact table?


where is your aggregation expression?

QlikView Qlik Sense consultant
mohiahmed
Contributor III
Contributor III
Author

Hi,

In the table I have the data in the format below

IGA               Service ID    SLA ID               Metrics Result     Month

UK_35          PCEN06       SL01.UK.BI       95%                    01/04/2018

UK_36          PCEN07       SL02.UK.BI       97%                    01/05/2018

mohiahmed
Contributor III
Contributor III
Author

Many thanks for this, however it's not a sum as data is aggregated hence using the "=[Metric(Result)]".


Data structure is similar to below

IGA               Service ID    SLA ID               Metrics Result     Month

UK_35          PCEN06       SL01.UK.BI       95%                    01/04/2018

UK_36          PCEN07       SL02.UK.BI       97%                    01/05/2018

UK_37          PCEN08       SL03.UK.BI       95%                    01/04/2018

UK_36          PCEN09       SL04.UK.BI       97%                    01/05/2018

stigchel
Partner - Master
Partner - Master

You still need a function that will take set analysis, something like this

=Only({<[Metric(Result)],IGA = {'UK_35'},[Service ID]={'PCEN06'},[SLA ID]= {'SL01.UK.BI'}>})


It’s all Aggregations



mohiahmed
Contributor III
Contributor III
Author

Hi, Many thanks for suggesting the only function, however when i use "Only ([Metric(Result)])" it seems fine, however when I use =Only({<[Metric(Result)],IGA = {'UK_35'},[Service ID]={'PCEN06'},[SLA ID]= {'SL01.UK.BI'}>}) it gives me an error. 

Anil_Babu_Samineni

What dimension bases you are using Only() function, You need one dimension there?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
stigchel
Partner - Master
Partner - Master

Sorry, I copied the expression too fast, it's missing the field

Only({<IGA = {'UK_35'},[Service ID]={'PCEN06'},[SLA ID]= {'SL01.UK.BI'}>} [Metric(Result)])

mohiahmed
Contributor III
Contributor III
Author

I have used months as dimention