Forum Discussion

learner03's avatar
learner03
Icon for Post Partisan rankPost Partisan
5 years ago
Solved

Group by first initial and Quantity 0

How can I get the below output?
First I want to extract only first Letter from the location.

Then in the output, show in the desired format as first initial, locations with that initial and selecting only those locations from Table 1 where Quantity is 0

ryan_mayu Anonymous Anonymous 

  • Hey learner03 ,

     

    go into Power Query, select the column and chose:

    Tabl "Add column" --> "Extract" --> "First Characters"

     

    Like this you get your "First Initial" column. The rest is then only reporting what shouldn't be a problem with the data you have then.

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis
     

     

  • Hi learner03 ,

    first create with DAX a new calculated column like this:

     

     

    You get the following result in a matrix:

     

     

    With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
    FrankAT (Proud to be a Datanaut)

4 Replies

  • selimovd's avatar
    selimovd
    Icon for Most Valuable Professional rankMost Valuable Professional

    Hey learner03 ,

     

    go into Power Query, select the column and chose:

    Tabl "Add column" --> "Extract" --> "First Characters"

     

    Like this you get your "First Initial" column. The rest is then only reporting what shouldn't be a problem with the data you have then.

     

    If you need any help please let me know.
    If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
     
    Best regards
    Denis
     

     

  • FrankAT's avatar
    FrankAT
    Icon for Community Champion rankCommunity Champion

    Hi learner03 ,

    first create with DAX a new calculated column like this:

     

     

    You get the following result in a matrix:

     

     

    With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
    FrankAT (Proud to be a Datanaut)

    • learner03's avatar
      learner03
      Icon for Post Partisan rankPost Partisan

      Thanks, Why am I getting below view in matrix and not like yours as first character and location in different column-

       

      • FrankAT's avatar
        FrankAT
        Icon for Community Champion rankCommunity Champion

        Hi learner03 ,

        use the format option of the selected matrix (see figure):

         

         

        With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
        FrankAT (Proud to be a Datanaut)