Ошибка power pivot cardinality

Пользовательское соглашение

Политика конфиденциальности

© Николай Павлов, Planetaexcel, 2006-2023
info@planetaexcel.ru


Использование любых материалов сайта допускается строго с указанием прямой ссылки на источник, упоминанием названия сайта, имени автора и неизменности исходного текста и иллюстраций.

Техническая поддержка сайта

ООО «Планета Эксел»

ИНН 7735603520


ОГРН 1147746834949
        ИП Павлов Николай Владимирович
        ИНН 633015842586
        ОГРНИП 310633031600071 

Hello

I faced the same issue, I was sure, that I have all values unique, I checked it with the conditional formatting in excel, then I included Remove duplicates in the Power Query Editor, I also created the Group By column in Power Query Editor to display count of values — each row contained 1.

Finally I created the Card visual based on the measures TotalRows and DistinctRows — what a surprise — TotalRows<>DistinctRows!

How to find the duplicate values -> delete rows by rows in Excel and check the cards. After 10 minutes I found the problem — the space character after the string value

space after string.png

It makes of course unique value for conditional formatting, unique value for Power Query Editor, but not for the Edit relationship dialog!

After deleting this space character, the duplicate value appeared everywhere, so by deleting the duplicate row I could create the 1 to many relationship …

Quick fix/resolution for something that I noticed when populating a PowerPivot model with data from an OData feed via PowerQuery. The feed had nested XML tables that I pivoted into the main resultset using the PowerQuery “expand”. The  resulting column name by default is ParentField.ChildField

I left the column names as default, added it to a PowerPivot model and tried to join it using one of these fields (Job[Client.ID] => Client[ID]) and received the following error

============================
Error Message:
============================

Query (1, 183) The dimension ‘[Client.ID_Cardinality]’ was not found in the cube when the string, [Client.ID_Cardinality], was parsed.

It seems power pivot doesn’t quote identifiers. Quick fix is to rename the pivoted column (Job[Client.ID]) to one that doesn’t include a period in the column name (Job[ClientID])

An example!

Imagine I’ve imported the following data into excel

PowerPivot Source Data

and added it into a data model

Data Model no Relationships

Now I try to relate the Job table to the Client table using [Job]Client.ID => Client[ID]

PowerPivot Relationship Error

Quite an error message.

But if in the Job table I rename Client.ID to ClientID

PowerPivot Relationship Success

Success!

Something to keep in mind, especially when expanding nested XML tables using PowerQuery. Strip those periods (and probably other special characters)!

  • Remove From My Forums
  • Question

  • I have Excel 32 bit and 16 G RAM and I have been able to successfully connect to a text file for example of 900,000 rows and get it in the data model using Power Pivot.

    Now, I have a Excel File of 825,000 rows and 33 columns and that is my data Source.

    Every time  say other sources > Excel files and connect to it, Test Connection Succeeds and then i pick the sheet and 

    1.) Preview and Filter will fail (every time I use Power Pivot to connect to the file (System out of memory exception)

    2.) If i omit preview and filter and click next, it keeps spinning for a while and then (System out of memory exception)

    As an alternate approach i used power query to connect to the same excel data source, marked first rows as headers and then load to data model, in a few minutes successfully loads.

    I cannot give this as a solution since i am trying to establish power pivot that my users have as the means to do their self service BI. Why is it working on Power Query and not on Power Pivot and just 800,000 odd rows.

    Any help would be appreciated. I have even killed my lync, outlook, browser etc to save memory.

Answers

  • Further, the size of the data in memory is not determined solely by number of rows, but also by cardinality of columns and number of columns. I’ve loaded 10s of millions of rows to 32 bit Excel, but it was a very narrow fact table with low cardinality columns.

    Power Query is a very useful tool and is applicable to the self-service BI model. Why would you not want to expose your users to this powerful tool in addition to Power Pivot? The two go hand-in-hand and do not fulfill the same role.

    • Marked as answer by

      Tuesday, December 16, 2014 3:32 PM

  • Hello,

    Power Pivot is an in-memory engine and it’s limited by the existing & useable RAM; for the 32 bit Version it is max.
    3,5 GB. If you try to load more data you get that error message.

    Power Query is can use Memory paging and therefore you can load more data then 3,5 GB.


    Olaf Helper

    [ Blog] [ Xing] [ MVP]

    • Proposed as answer by
      Michael Amadi
      Monday, December 15, 2014 3:06 PM
    • Marked as answer by
      Ramesh Sethuraman
      Tuesday, December 16, 2014 3:32 PM

Hi, i am not able to connect the 3 tables i have.  gettign the following error: 

failed to save modifications to the server. Error returned: ‘Relationship ‘d1259967-03f1a-b4a5-f83344f5d47’…» between columns ‘ MAS[Part_Num]’ and ‘Table B[Cl_Part]’ has the TO end cardinality set to Many. To end cardinality must always be set to One.

Part_Num column has Ids like below: 

M393A2K43BB1-CRC
750-40017-01
AGIGA9831-001JCB
HMN82GR7AFR4N-UH

  • Ошибка postscript flushing rest of job to end of file will be ignored 0x01004002
  • Ошибка post при запуске компьютера
  • Ошибка post error дорс 800
  • Ошибка post error occurs как исправить
  • Ошибка port open error