Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
MauriceLudo
Creator II
Creator II

Set Analysis M-1

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

6 Replies
MauriceLudo
Creator II
Creator II
Author

Voici l'appli

vishsaggi
Champion III
Champion III

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,##%'

       )

MauriceLudo
Creator II
Creator II
Author

Thank youNagaraju,

it works but not for every months, it is ok for mars may juin but not for the ather months

vishsaggi
Champion III
Champion III

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.

MauriceLudo
Creator II
Creator II
Author

I changed, but it does not work, here is the application with the change

vishsaggi
Champion III
Champion III

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,##%'

      )