+ Reply to Thread
Results 1 to 2 of 2

CUBEVALUE: String measure values cause errors

  1. #1
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Question CUBEVALUE: String measure values cause errors

    I'm creating a workbook connecting to multiple Power BI datasets, using CUBE formulae to layout a structured report.

    There are a couple of measures in one of my datasets which display as expected and allow saving as usual when used in a Pivot Table - But when used in a CUBEVALUE function, although they display correctly on the worksheet, the workbook then cannot be saved, with error messages suggesting file corruption.

    I've narrowed it down to two measures which return relatively long text strings, delimited by UNICHAR ( 10 ).

    I can't find any resources suggesting a limitation on the CUBEVALUE function either on length of value returned, or on special characters used.


    Before I embark on a trial and error mission of changing the measures in my PBI dataset... anyone come across this issue before, and know the fix?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: CUBEVALUE: String measure values cause errors

    OK, kind of answering my own question.... took a quick stab that the string length was causing the issue, and truncated to max 127, which fixed the problem.

    Would be nice to understand the actual limitation value, why it exists, and alternatives / workarounds, if anyone has any ideas?

+ 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. [SOLVED] Power Pivot: Measure to sum unpivoted values?
    By happydays886 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-31-2021, 02:49 PM
  2. [SOLVED] Pivot Table Measure based on Column Values
    By MLAN_75 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-26-2021, 05:04 PM
  3. Duplicating Values in Power Pivot Table (DAX Measure?)
    By jmklei0 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-07-2021, 11:14 AM
  4. Pivot Table: Grand Total different measure from Column measure
    By chinneywow in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 08-07-2019, 06:22 AM
  5. measure drop in values
    By sqoo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-27-2015, 06:27 AM
  6. How to measure values of an equations with two variables and save each on a different Cell
    By AbdallahHajbed in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2012, 09:11 AM
  7. Replies: 1
    Last Post: 11-29-2011, 10:52 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