Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Carlaf_93
Creator II
Creator II

P() function

Why the p funtion is not working on Qlik Sense?

It says that it isn't a valid function....

Labels (1)
1 Solution

Accepted Solutions
tresesco
Champion III
Champion III

You might not need p() for this. You can try an expression like:

Count(DISTINCT {<Year={'$(=Max({<Prod>}Year)-1)'}>} Cust)

tresesco_0-1591698271755.png

 

View solution in original post

4 Replies
rzenere_avvale
Partner - Specialist II
Partner - Specialist II

Goodmorning @Carlaf_93 ,

how are you trying to use it? Would you mind sharing an example of what you're trying to do?
I've used it on almost all QS versions without issues

Many thanks,
Riccardo

lironbaram
Partner - Master III
Partner - Master III

hi 

p function is only used inside set analysis 

for  more information look here 

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

 

Carlaf_93
Creator II
Creator II
Author

i woul like too see how many actual customers bought someting last year.

So i want to create a kpi that says if a selected customers bought something last year.

tresesco
Champion III
Champion III

You might not need p() for this. You can try an expression like:

Count(DISTINCT {<Year={'$(=Max({<Prod>}Year)-1)'}>} Cust)

tresesco_0-1591698271755.png