+ Reply to Thread
Results 1 to 23 of 23

Cubefunction with timeline

  1. #1
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Cubefunction with timeline

    Hi!

    I have a rather anoying problem with a cubefunction and a timeline

    timeline.JPG

    1.To the left in the picture is the cubefunction and to the right a pivottable.
    2. When i select a single date in the time line (in this case 5th Aug 2017) the cubefunction returns #SAKNAS "#MISSING" and the pivottable returns the right result.

    timeline2.JPG

    3. If i select two dates (in this case 5th and 6th Aug 2017) cubefunction returns the same value as the pivottable.

    Does anyone know why its acting like this when just selecting one date ?


    Best regards

    Petter

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    The best way is attach desensitized excel file

  3. #3
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    You are so right

    (I dont know if i attached it righ otherwise here is a link)

    Here Link

    // Petter
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    I think you need to round your (I need retype it letter by letter ) Hinderuppfyllnad measure. I did it, format number, decimals:2 and it works
    (format of this measure in DataModel was: General but should be a number)
    Last edited by sandy666; 09-29-2017 at 08:26 AM.

  5. #5
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    test3.JPG

    Hmmm i still wont get it to work

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    Could you attach fiile with your correction?

  7. #7
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    I have retypet the measurement letter by letter and change the format from general to number with 2 decimals
    Attached Files Attached Files

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    I retype from DataModel to here this name because for me this is weird and I don't know this language

    try now with attached file

    maybe will be good if both items will be in the same format, measure and item in PivotTable Fields / Values. I set both to 5 decimals now and it works

    also I changed format in source table from General to a Number with 0 decimals
    Attached Files Attached Files
    Last edited by sandy666; 09-29-2017 at 09:05 AM.

  9. #9
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    I says #SAKNAS (#MISSING) directly i open your file

    This is so strange can it be because i running a swedishversion of excel
    Last edited by Petter120; 09-29-2017 at 09:15 AM.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    I changed format and decimals only so it should work.

    btw. which date (month/day) you set on timeline and saw N/A?

    note: if you've PowerPivot it means you've minimum Excel 2010 or higher. Would be fine if you update your profile about Excel version

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    from 28 October to the end of the year you will see N/A (SAKNAS) because it doesn't exist in source table

    maybe this attachent will work for you. I created brand new PT and Cubemember
    Attached Files Attached Files
    Last edited by sandy666; 09-29-2017 at 09:35 AM.

  12. #12
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    Everytime i select a single day i get N/A when i select two dates or more it returns the value correct.

    Ohh i didnt realize that i will update my info

  13. #13
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    Sorry, I'll be grumpy but how fast you changing one day to another day on timeline? Your Temp folders (You have two: Windows and User) are empty?

    one more thing, if you see SANKAS could you simply open DataModel, do nothing and close? what will happen after that?
    Last edited by sandy666; 09-29-2017 at 09:55 AM. Reason: typo

  14. #14
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    Thats no problem The idea is to change everyday, i have deleted all data in my temp folders, i nothing happens when i open and Close the datamodel.


    What about this one:


    1. I added a new column to the table called Area (column B) all named "1"
    Area.JPG

    2. Then i created a new pivottable with a column B "Area" as a rowlabel
    3. Then converted the pivottable to a cubefunction.

    test3.JPG

    And i get this result as you can se it gives me a result for the row labeled 1 but still N/A for total row.
    Can this mean it has something to do with hierarchy?
    It wont explain why it works for you but not for me
    Attached Files Attached Files

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    Good joke
    I changed all 1's to a number format, then refresh PivotTable and it works !!! Really

    totalsumma.jpg

    then I tried again with your last file and refresh PT only - and again it works
    Last edited by sandy666; 09-29-2017 at 10:54 AM.

  16. #16
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    Still error for me, can you create a similiar workbook and send to me ? i was thinking it is something wrong i the background somewhere

  17. #17
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    I always had a problem with the Swedish version of windows / office. (remote tech service)
    Ok, I'll do it in awhile

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    Ok, here is brand new I didn't change anything. Just create table, PT and cube +timeline
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    I still shows N#A for me, can you create a sample and send to me, i was thinking i have som error in the background ?


    Doubble post disregard it
    Last edited by Petter120; 09-29-2017 at 12:05 PM.

  20. #20
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    Hmm still #Saknas

    test3.JPG

  21. #21
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    What I can say I wont to say that but I think you need take a decision

  22. #22
    Forum Contributor
    Join Date
    12-05-2008
    Location
    Kiruna
    Posts
    163

    Re: Cubefunction with timeline

    You are right i Think i need to go forward even though its really anoying .

    Thanks anyway for the help

  23. #23
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Cubefunction with timeline

    You are welcome
    Sorry that the problem was not solved

    from definition:
    • CUBEVALUE returns a #N/A error value when:
    • The member_expression syntax is incorrect.
    • The member specified by member_expression doesn't exist in the cube.
    • The tuple is invalid because there is no intersection for the specified values. (This can occur with multiple elements from the same hierarchy.)
    • The set contains at least one member with a different dimension than the other members.
    • CUBEVALUE may return a #N/A error value if you reference a session-based object, such as a calculated member or named set, in a PivotTable when sharing a connection, and that PivotTable is deleted or you convert the PivotTable to formulas. (On the Options tab, in the Tools group, click OLAP Tools, and then click Convert to Formulas.)
    Last edited by sandy666; 09-29-2017 at 03:57 PM.

+ 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. Multiple questions about Excel project timeline, % formulas, refresh timeline
    By Please Help in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2016, 07:13 PM
  2. Dynamic Timeline
    By caseys_93 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2015, 03:30 PM
  3. [SOLVED] Timeline
    By rwab in forum Excel General
    Replies: 2
    Last Post: 07-22-2009, 02:20 PM
  4. Timeline
    By aftabn10 in forum Excel General
    Replies: 3
    Last Post: 06-16-2008, 09:53 AM
  5. Timeline
    By Nadi in forum Excel General
    Replies: 1
    Last Post: 11-29-2007, 10:09 PM
  6. How do I put a timeline into a calendar?
    By Nat in forum Excel General
    Replies: 1
    Last Post: 08-15-2006, 02:55 PM
  7. making a timeline
    By alvin Kuiper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2006, 04:10 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