Qlik Community

Ask a Question

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Announcements
Welcome to our newly redesigned Qlik Community! Read our blog to learn about all the new updates: READ BLOG and REPORTED ISSUES
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor III
Contributor III

Counting Field - Typing Error

Hi guys,

this formula seems not to work and I do not find my error. I was trying to count those orders where there is only one order position. Can you help me? 🙂 Thanks in advance!

Count({<PeriodMath={'>=$(vMinPeriodYear2)<=$(vMaxPeriod2)'},Sum(Count(POSITIONNUMBER)={1})>}ORDERNUMBER)

Labels (3)
1 Solution

Accepted Solutions
Partner
Partner

Hi!

In set analysis you have to  write sets for fields in your data model. You can not use

Sum(Count(POSITIONNUMBER)={1}

because "Sum(Count(POSITIONNUMBER)" is not a field. You may use something like

Count({<PeriodMath={'>=$(vMinPeriodYear2)<=$(vMaxPeriod2)'}, ORDERNUMBER = {"=Count(POSITIONNUMBER) = 1"})>} ORDERNUMBER)

Hope it helps!

Jaime.

View solution in original post

2 Replies
Partner
Partner

Hi!

In set analysis you have to  write sets for fields in your data model. You can not use

Sum(Count(POSITIONNUMBER)={1}

because "Sum(Count(POSITIONNUMBER)" is not a field. You may use something like

Count({<PeriodMath={'>=$(vMinPeriodYear2)<=$(vMaxPeriod2)'}, ORDERNUMBER = {"=Count(POSITIONNUMBER) = 1"})>} ORDERNUMBER)

Hope it helps!

Jaime.

View solution in original post

Contributor III
Contributor III

Thanks so much! 😄 That worked