Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
joshuahirsch
Partner - Contributor III
Partner - Contributor III

Pivottable Measurements Groups AND Condition

Hi there,

 

I'm having a question:

I want a pivot table where the user can see, if a salespartner added  data, it's getting a yes ("ja"), if not its a no.
I can group these salespartners to Regions, and ONLY if EVERY sp in a region added data, there shall be a "yes" in the pivottable. Instead, as soon as there is ONE "yes" the whole region is set to "yes".

How can i fix this?

 

pivotBug.PNG

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer

Maybe something like this might work:

if(wildmatch(concat(aggr(if(Count(distinct [Date])>0,'Yes','No'), Vertriebspartner), ','), '*No*'), 'No', 'Yes')

- Marcus

View solution in original post

5 Replies
Clever_Anjos
Employee
Employee

What is current measure expression?

marcus_sommer

You could try something like this:

if(count(Field) = count({< Field = {'no'}>} Field), 'Ja', 'Nein')

- Marcus

joshuahirsch
Partner - Contributor III
Partner - Contributor III
Author

Hi, the current expression is depending on the date. Only if they added something, a date exists.

if(Count(distinct [Date])>0,'Yes','No')      translated

marcus_sommer

Maybe something like this might work:

if(wildmatch(concat(aggr(if(Count(distinct [Date])>0,'Yes','No'), Vertriebspartner), ','), '*No*'), 'No', 'Yes')

- Marcus

joshuahirsch
Partner - Contributor III
Partner - Contributor III
Author

Holy!
That feels like magic!


Thank you so much Marcus!