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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
hvantoni
Contributor II
Contributor II

How can I count value of a measure & how can I select values ​​of a measure?

I want to compare two fields. If they match correct value ok and if not value does not match. 
later I want to be able to select the ones that do not match and be able to count them

problema1.png

verifica_router is a measure
if([ÚltimaEthenet]=[Ethernet_Declarada] , 'OK ', 'nocoincide')



 

Labels (1)
1 Solution

Accepted Solutions
oskartoivonen
Partner - Contributor III
Partner - Contributor III

You can try feeding the fields into the Match-function if you want to compare them 1:1. Wildmatch-function allows for wildcards as well.

if(Match([ÚltimaEthenet], [Ethernet_Declarada]), 
    'OK ', 
    'nocoincide'
) as CompareField

 

View solution in original post

3 Replies
ckarras22
Partner - Creator
Partner - Creator

verifica_router can be a dimension as well (selectable). 

 

to count them, you can have a simple KPI like sum(if([ÚltimaEthenet]<>[Ethernet_Declarada] , 1))

hvantoni
Contributor II
Contributor II
Author

It doesn't work, it's two text fields that are compared and 
it doesn't do it neither with <> nor with -=
oskartoivonen
Partner - Contributor III
Partner - Contributor III

You can try feeding the fields into the Match-function if you want to compare them 1:1. Wildmatch-function allows for wildcards as well.

if(Match([ÚltimaEthenet], [Ethernet_Declarada]), 
    'OK ', 
    'nocoincide'
) as CompareField