+ Reply to Thread
Results 1 to 8 of 8

CUBE VALUE formula recognizes two sets of identical text differently

  1. #1
    Registered User
    Join Date
    02-23-2021
    Location
    Amsterdam
    MS-Off Ver
    2019
    Posts
    3

    CUBE VALUE formula recognizes two sets of identical text differently

    Cube Value 1.JPG

    I am using the exact same CUBEVALUE formula in both rows, which are referencing the blue text (Central costs).

    The first row has 'Central costs' which is pasted from the line item retrieved from Power Pivot.
    The second row has 'Central costs' which has been typed manually, but is exactly the same as what was pasted from Power Pivot above.

    When I checked that these two 'Central costs' cells are equal, the formula returns TRUE, but the CUBEVALUE formula for some reason results in an #N/A. Everything else is identical.

    Has anyone experienced this issue before and how do you fix it?

    Thank you

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,037

    Re: CUBE VALUE formula recognizes two sets of identical text differently

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-23-2021
    Location
    Amsterdam
    MS-Off Ver
    2019
    Posts
    3

    Re: CUBE VALUE formula recognizes two sets of identical text differently

    Thanks. The workbook has a lot of confidential data which is why I haven't attached it. To strip out all of the confidential data would require a lot of work so I was hoping the problem could be illustrated by the picture and explanation that I posted above? Is there something that doesn't make sense?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,037

    Re: CUBE VALUE formula recognizes two sets of identical text differently

    Hard to tell what might be going wrong without seeing the formula "in action"

  5. #5
    Registered User
    Join Date
    05-28-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2019
    Posts
    12

    Re: CUBE VALUE formula recognizes two sets of identical text differently

    Karen, it could be that there are hidden characters transferred from Power Pivot in C36. Assuming that the hidden characters causes the problem, you can try one of two fixes: 1) Use a "trim" formula in c36 and 2) in c37 use the formula =$c$36

  6. #6
    Registered User
    Join Date
    02-23-2021
    Location
    Amsterdam
    MS-Off Ver
    2019
    Posts
    3

    Re: CUBE VALUE formula recognizes two sets of identical text differently

    Hi MaraisV, thanks for your response. It does work using '=C36', however that still doesn't solve the problem of trying to reference a new line item by typing that.

    For example I have added an attachment.

    The yellow cells all contain the same CUBEVALUE formula.

    In the second row of each group, I have manually written each line item. In column D you can see that the two texts are exactly the same. For Contribution Margin, Invested capital, Net Working Capital - when I write these, they all result in errors. It's not just that - if you go to Ccll C8 and hit F2 and then Enter, that also results in an error (even though you haven't changed any of the spelling or format or anything).

    For EBIT, EBITDA, Financing it appears to not be an issue. Do you have any idea why? Is it a coincidence that the one word line items (EBIT, EBITDA, Financing) don't have an issue but the two word line items do?

    Thanks,
    Karen
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-28-2013
    Location
    South Africa
    MS-Off Ver
    Excel 2019
    Posts
    12

    Re: CUBE VALUE formula recognizes two sets of identical text differently

    I have tried to simplify the formula and data to see if the results change, but the error is consistently the same. Looking at your imported data it would appear that the values in the cells are the same. So, I have a few theories what could be wrong but I would suggest that you look at the source data and see if there is a hidden character in the space between "central" and "costs". Copy "central costs" from your source data, paste it in MS Word and switch on the show/hide button.
    Other than that, I can't see what is wrong. Sorry...

  8. #8
    Registered User
    Join Date
    10-11-2024
    Location
    na
    MS-Off Ver
    2016
    Posts
    1

    Re: CUBE VALUE formula recognizes two sets of identical text differently

    Hi. I faced the same issue and was searching for an answer and came across this forum. After many trials and error, I believe I have found the solution.

    Instead of typing it manually in a cell(Central costs), use CUBEMEMBER function.

    In my case, I was having difficulty to make the formula work for 'Sales'. I found no difference between the text I typed as 'Sales' and 'Sales' from Power Pivot.

    Then instead of typing 'Sales' manually into a cell, I tried CUBEMEMBER function to bring the text 'Sales' into that cell. This did the trick. The CUBEVALUE formula in another cell was able to detect this.

    I hope this helps.


    In cell L11 this is the formula =CUBEMEMBER("ThisWorkbookDataModel","[Measures].[Sales]") --- Before in cell L11, I typed 'Sales' and didn't work.

    In cell O11 this is the formula =CUBEVALUE("ThisWorkbookDataModel",L11,"[f_Table].[Product].[Oats]")

+ 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. Format formula result, and text with formula differently
    By Dado87 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2020, 05:01 AM
  2. If formula that recognizes any (non specific) text
    By Yago87 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2020, 03:40 AM
  3. [SOLVED] Identical Formulas from Identical Data Sets Return Different Results
    By EverClever in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2018, 06:56 PM
  4. Wilcards in Cubefunctions (cube sets)
    By emcfportal in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-07-2017, 03:34 PM
  5. Replies: 14
    Last Post: 04-20-2016, 03:31 PM
  6. [SOLVED] Identical Text not identical (for =, vlookup, etc) MAKING ME CRAZY
    By jnt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2015, 09:57 PM
  7. Why do identical formulas sometimes act differently?
    By Scarlett O in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-05-2005, 01:06 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