Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
abdblf_22
Contributor
Contributor

faire une condition avec une mesure calculé

bonjour ,

a la base j'ai crée une mesure calculé qui s'appelle 'max_transc' dans un tableau  pour afficher '1' a chaque ligne pour savoir si un voyageur modifier son ticket ou non  , sinon ca affiche une valeur null.

puis j'ai voulu utiliser cette mesure pour calculer le nombre des tickets qui sont modifiés et j'ai fait cette fonction pour savoir si max_transac = 1 donc : 

count ({< max_transc = {'1}'>} ProductCode) ,

mais ca donne pas la valeur correcte , comme ci il ne prend pas la condition en consideration .aidez-moi! 

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

im assuming the field max_transc  was created in the chart itself and not during data load

You can only use Actual fields that exist in the datamodel in Set Analysis

Can you post some sample data so members here can help you better

or else you can try a an if() block

   = Count(Distinct  Aggr ( if( <calculation for max_transc  > = 1 ,   ProductCode) , ChartDimension) ) 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

im assuming the field max_transc  was created in the chart itself and not during data load

You can only use Actual fields that exist in the datamodel in Set Analysis

Can you post some sample data so members here can help you better

or else you can try a an if() block

   = Count(Distinct  Aggr ( if( <calculation for max_transc  > = 1 ,   ProductCode) , ChartDimension) ) 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.