Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bonjour,
j'ai un souci avec cette expression pour calculer un pourcentage de Mois-1,
l'expression fonctionne pour certain mois , elle m'affiche le résultat d'avril qd je sélectionne mai, et rien pour juin et juillet.
Count({<Année={'$(=Year(AddMonths(Max([Date Appel]),-1)))'}, [Mois]={'$(=Month(AddMonths(Max([Date Appel]),-1)))'}, Jour=, Heures=, Q_5={'Satisfaisants'},[Produits]=$(vProduit)>} [ID personne] )
/Count({<Année={'$(=Year(AddMonths(Max([Date Appel]),-1)))'}, [Mois]={'$(=Month(AddMonths(Max([Date Appel]),-1)))'}, Jour=, Heures=, [Produits]=$(vProduit) >}/* total <[Mois]> */[ID personne])
Quelqu'un peut m'aider s'il vous plait
Merci
Maurice
Voici l'appli
Try this for Previous Month?
= num( Count({<Mois={'$(= Month(AddMonths(Max([Date Appel cal]),-1))&'.')'},
Jour=,
Question_5= {'Satisfaisants, j''ai trouvé toutes les informations recherchées'},
[Produits/Services]= $(vProduit_Service) >} [ID personne interrogée]
)
/
Count({< Mois = {'$(= Month(AddMonths(Max([Date Appel cal]),-1))&'.')'},
Jour =,
[Produits/Services] = $(vProduit_Service) >} [ID personne interrogée]
),
'00,##%'
)
Thank youNagaraju,
it works but not for every months, it is ok for mars may juin but not for the ather months
Not sure if this would help. Your MOIS field has month names with a dot like jan. fev. .....etc. in your set variables defined there are missing dots can you copy paste this in your set variable and reload and check?
Your current script has this change this set to the one below
Your current script holds this
SET MonthNames='janv.;févr.;mars;avr.;mai;juin;juil.;août;sept.;oct.;nov.;déc.';
Change to below
SET MonthNames='janv.;févr.;mars.;avr.;mai.;juin.;juil.;août.;sept.;oct.;nov.;déc.';
Then run and check.
I changed, but it does not work, here is the application with the change
Ok now in this changed application for previous month text object replace with this and try?
= num( Count({<Mois={'$(= Month(AddMonths(Max([Date Appel cal]),-1)))'},
Jour=,
Question_5= {'Satisfaisants, j''ai trouvé toutes les informations recherchées'},
[Produits/Services]= $(vProduit_Service) >} [ID personne interrogée]
)
/
Count({< Mois = {'$(= Month(AddMonths(Max([Date Appel cal]),-1)))'},
Jour =,
[Produits/Services] = $(vProduit_Service) >} [ID personne interrogée]
),
'00,##%'
)