+ Reply to Thread
Results 1 to 4 of 4

Help with CubeValue Funtion to calculate YTD sales

  1. #1
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Help with CubeValue Funtion to calculate YTD sales

    Dear All

    I was wondering whether some one can help me with the following problem with the CubeValue Formula

    I am designing a dashboard wher I have used CubeValue Function to return the sales for the chosen period based on the user's input

    my formula is shown below
    Please Login or Register  to view this content.
    What I want to do now is to also calculate the YTD sales , so if user enters 5 in cell B1 then I can also show the sales cumulative sales from Period 1 to Period 5 as well as the sales fro Period 5 (from formula above).

    Is there an easy way to do this without having to use Getpivot data function as I do not want to create any pivot table.

    Any help is appreciate it.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Help with CubeValue Funtion to calculate YTD sales

    Hi,

    I think you can achieve that using CUBESET:

    =CUBEVALUE("PowerPivot Data",CUBESET("PowerPivot Data","{[Sales].[TimePeriod of YearPeriod of Year].&[1]:[Sales].[TimePeriod of YearPeriod of Year].&["&$B$1&"]}"),"[Measures].[Sum of MeasuresSales RtlT]","[Sales].[TimeYearYear].[2016-2017]")
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    06-17-2014
    Location
    london
    MS-Off Ver
    365
    Posts
    398

    Re: Help with CubeValue Funtion to calculate YTD sales

    Thak you so much for your help xlintwit. It worked like a treat.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Help with CubeValue Funtion to calculate YTD sales

    You're most welcome. I'm just glad I had the syntax correct!

+ 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: 16
    Last Post: 03-09-2016, 05:01 PM
  2. Replies: 1
    Last Post: 03-09-2016, 12:16 PM
  3. [SOLVED] What is a cubevalue
    By stephme55 in forum Excel General
    Replies: 3
    Last Post: 02-12-2016, 05:40 PM
  4. [SOLVED] Calculate number of days between sales and prior sales date
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2013, 03:07 PM
  5. [SOLVED] Calculate Sales
    By edesign95 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 11-09-2012, 04:19 AM
  6. [SOLVED] Calculate total sales adjustments for each sales person
    By Adama in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-02-2012, 06:26 PM
  7. [SOLVED] formula to calculate sales tax from total sales
    By Deanna in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-05-2005, 04:05 PM

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