Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Can't figure how to configure a primary key for push datasets I created using the REST API

When testing out the REST API, I created a push dataset with a table called Contacts. This table was given two columns: "id" as an Int64 and "name" as a string. If I insert two rows with the same name value, I end up with one row containing an id value which is the sum of the value from both records. This appears to implicitly make the "name" column a primary key, with the implicit behavior of adding any numeric fields together. To make matters worse, I can't find any way to view the rows after they are inserted. Not from the API, the service, or the desktop app. How am I supposed to know if the ids are even being added together or if this is just how every visualization chooses to display the data? This black-box style of storage and configuration is quite unappealing compared to any SQL database experience.

I've spent a lot of time reading documentation for Power BI, including the information for push datasets (which is what I set the "defaultMode" to). I did not find anything mentioning this sort of behavior. I'm really hoping there is some sort of reference explaining how to control the primary key (if there is one?) and what happens for duplicate key inserts. For my use case, I need the primary key to be a number and, if possible, replace values if a row is inserted with duplicate key, not add them together.

1 REPLY 1
vikramsisodia27
New Member

Did you find any solution for the mentioned problem ? 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.