+ Reply to Thread
Results 1 to 5 of 5

Measure to show figures for matching periods year on year periods,

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    614

    Measure to show figures for matching periods year on year periods,

    Problem, Year 1 = March - Dec , Year 2 = Jan - July,

    so to compare the two I want the previous year total = March - July for current and previous year ;

    Please Login or Register  to view this content.
    Then for the current year I used first and last non blank

    Please Login or Register  to view this content.
    This does seem to work but am I overlooking a function or method that might work better, or if this can give incorrect answers,
    I have attached the file with working out.
    The main problem was to total level, getting the values at the month I could just use First nonblank.

    Richard.
    Attached Files Attached Files
    Last edited by Dicken; 02-05-2024 at 11:29 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Measure to show figures for matching periods year on year periods,

    I don't really follow what you are trying to do. Why are you comparing 5 months of one year to 7 months of another?
    Rory

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    614

    Re: Measure to show figures for matching periods year on year periods,

    Hi,
    Sorry not very clear ,

    I want to compare the Current and previous years for the months that they both have figures for,

    2020 = March -Dec

    2021 = Jan - July = Current = March - July , Previous = March - July

    2022 = Feb - July = Current = Feb - July Previous = Feb - July,

    So otherwise in the 2020 / 21 comparison you would be comparing a 2021 total of Jan - July against a previous total which was only Mar - July.

    so in the attachments a total of 2021 = 84 overall total but if for months that correspond to the 2020 it now = 62 as it does not include jan and feb as there are no figurs for comparison year 2020.
    I have re attached an highlighted the two differing totals and the measure new current total hope this makes it clearer if not at least it's what I was looking for if not the best way of doing it.

    Richard
    Attached Files Attached Files

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: Measure to show figures for matching periods year on year periods,

    You can calculate the individual month amounts quite simply using something like:

    =if(isblank(CALCULATE([TotalUnits],SAMEPERIODLASTYEAR('Calendar'[Date]))),blank(),[TotalUnits])

    but that won't work at the subtotal/grand total level, so you'd need to wrap it in a VALUES function. If that was a measure called NCT you could use:

    =sumx(values('Calendar'[MMM-YYYY]),[NCT])

  5. #5
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    614

    Re: Measure to show figures for matching periods year on year periods,

    Thanks, I'll have a look I might try Mr excel and mark this up, I found a couple of ways to get the month level, also I have a quetion re the first of month measur I wanted to use, I have shown it in the attachment but could not use it as it returns a 01/01/1900 when no values are present, it's proabably best to have look rather than me describe; the measure is EON_FNB, I use EOMONTH(_,-1)+1, as I did not know there was a start of month
    which works better.

    using the ammeded prevoius year ;

    Please Login or Register  to view this content.

    and then

    Please Login or Register  to view this content.
    or just;

    Please Login or Register  to view this content.


    Richard
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 03-08-2023, 03:35 AM
  2. Fun challenge: 13 Periods Per Year
    By Olly in forum The Water Cooler
    Replies: 3
    Last Post: 02-17-2022, 07:48 PM
  3. Charting Drawdown Periods by Year
    By bgcm in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-09-2017, 11:40 AM
  4. [SOLVED] Returning a summary table of none productive periods in a year
    By saifsawafi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-10-2016, 03:47 AM
  5. Projecting Rest Of Year Based Off Last 5 Pay Periods
    By Caedmonball19 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-13-2014, 03:53 AM
  6. Charts with year and separate annual periods
    By toplisek in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 06-08-2013, 01:45 PM
  7. Dynamically calculate first and last pay periods for year
    By crspycrtr in forum Excel General
    Replies: 3
    Last Post: 10-18-2011, 03:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1