Power query colonne conditionnelle

Home Forums Power Query Power query colonne conditionnelle

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #85448
    pierro1234
    Participant

    Bonjour,
    Ci-joint un fichier excel “R1” contenant une requête power query avec un rajout de colonne conditionnelle:
    Si commence par 1 alors A
    Si termine par 4 alors A

    Est il possible d’avoir les deux conditions: si commence par 1 et termine par 4, alors A?

    Merci

    #85449
    Christian Maltese
    Participant

    Bonjour,

    assez simple mais sauf erreur de ma part il n’y a pas de fichier joint
    Il faut juste ecrire un “if…. =4 or …=4 then … else …

    Bonnes fetes

    #85479
    pierro1234
    Participant

    Merci,
    J’ai pu trouver, c’était plutot:
    each if Number.From(Text.Start([COMPTE],1))=1 and Number.From(Text.End([COMPTE],1))=4 then “A” else null

    Bonnes Fetes!!!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.