Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Mario_ES
Contributor III
Contributor III

Craziest Set Analysis Yet (Only Experts)

Hello,

I'm trying to filter lines of a table that has multiple dimensions and only one expression that I use for filtering.

The field's values are something like this:

Mario_ES_0-1716477210357.png

And the end product has to be something like this: 

Mario_ES_3-1716477291772.png

I believe that the correct expressión is this one:

Count ( Distinct {<form_order={"max(<[No. Proceso]>form_order)"}>} [No. Proceso])

Do you have any idea why this isn't working?

Thanks!

Labels (1)
5 Replies
MatheusC
Specialist
Specialist

Maybe this:

For your form_order dimension form_order :

=AGGR(max(form_order), [No.Proceso])

to your measure:

=count(Aggr(FirstSortedValue([No.Proceso],-form_order),[No.Proceso]))

Regarts, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
marcus_sommer

Your max-condition isn't evaluated else taken as a search-string. Therefore try it in this way:

Count ( Distinct {<form_order={"$(=max(<[No. Proceso]>form_order))"}>} [No. Proceso])

Mario_ES
Contributor III
Contributor III
Author

Thank you very much for your answer.

I think that it shouldn't be evaluated.

Look at the screenshot:

Mario_ES_0-1716548613925.png

In the dialog, you can see that it doesn't find the max form_order because there are many No. Proceso at the same time.

With this formula, I get no results even though I haven't filtered the information on any field:

Mario_ES_1-1716549286862.png

You can try it in your QS if you want.

 

TauseefKhan
Creator III
Creator III

Hi @Mario_ES,

Result:

TauseefKhan_0-1716552456829.png

form_order =
Count( Distinct {<form_order={"=max({<No_Procesol= >} form_order)"} >} form_order)

Count =
Count( Distinct {<form_order={"=max({<No_Procesol={$(=max(No_Procesol))}>} form_order)"}>} No_Procesol)

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.


BrunPierre
Partner - Master
Partner - Master

As below.

Count(DISTINCT If(form_order=Aggr(Max(TOTAL<[No. Proceso]>form_order), form_order, [No. Proceso]), [No. Proceso]))

BrunPierre_2-1716563804095.png