Summarize Table to show total children and adults per year

  • Summarize Table to show total children and adults per year

    Posted by DSC Communities on June 15, 2022 at 12:17 pm
    • Leonard Levine

      Member

      June 15, 2022 at 12:17 PM

      Hi,

      I have data with name, date of service  and date of birth (see below). An individual can have multiple dates of service in a given year.  I am trying to first find earliest date of service for each name in each  year of service. Second I wish to calculate  age (Date of Service- Date of Birth .  Then if less than 19 years of age classify as child, otherwise adult.
      Below is a graphic of what I am trying to achieve.  Thanks in advance!!!
      image.png

    • Jonathan CHANAL

      Member

      June 17, 2022 at 10:04 AM

      Hello,

      Here is a solution. I did not add the age but you can do it in Power Query if necessary. You said “Less than 19” but in the screenshot, it’s less or equal I think, you have to modify it in Power Query.

      Have a nice day,

      ——————————
      Jonathan CHANAL
      Power BI Consultant/Formateur
      MCSA Power BI & Excel
      ——————————
      ——————————————-

    DSC Communities replied 3 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Summarize Table to show total children and adults per year’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!