+ Reply to Thread
Results 1 to 3 of 3

Calculated column to count number of weeks from a previous response in data

  1. #1
    Registered User
    Join Date
    04-09-2014
    Location
    Sydney
    MS-Off Ver
    Excel 365 Pro
    Posts
    6

    Calculated column to count number of weeks from a previous response in data

    So I have a list of stores that are called upon sales reps. The sales reps do a check of a demonstration unit each time they visit. Is there a way in PowerPivot if the demonstration unit is not operational to count the number of weeks it has not been operational? I have attached an example of what output I am after.
    Ideally I would prefer a solution via Powerpivot but am open to any other suggestions.
    Any help would be appreciated.example.xlsx
    Last edited by adamzee; 04-12-2015 at 07:55 PM.

  2. #2
    Forum Contributor
    Join Date
    12-11-2010
    Location
    Indiana, USA
    MS-Off Ver
    Excel 2007
    Posts
    118

    Re: Calculated column to count number of weeks from a previous response in data

    Will this work for you?
    Attached Files Attached Files
    Last edited by ufopilot; 04-13-2015 at 01:51 AM.

  3. #3
    Registered User
    Join Date
    04-09-2014
    Location
    Sydney
    MS-Off Ver
    Excel 365 Pro
    Posts
    6

    Re: Calculated column to count number of weeks from a previous response in data

    Thanks ufopilot, however I got this solution in dax from another source. I have posted this below for anyone interested.

    =if(Table1[Demonstration Unit Operational?]="No", CALCULATE(DistinctCOUNT(Table1[Week]),Filter(Table1,[Demonstration Unit Operational?]="No"&&[Store Name]=[Store Name]&&[Week]>EARLIER([Week]))),blank())

+ 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: 3
    Last Post: 10-27-2014, 06:03 PM
  2. [SOLVED] Count number of holidays depending on number of weeks
    By ANTH16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 03:42 AM
  3. Replies: 1
    Last Post: 02-04-2013, 11:40 AM
  4. A function to count the number of weeks between dates?
    By DorothyFan1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2011, 09:25 AM
  5. Macro to transfer previous weeks data.
    By coolhit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2009, 07:32 AM

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