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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
iowakrz
Frequent Visitor

Passing auto-increment field to powerapp visual which is also a primary key

I have a table with an ID field set as auto-increment which is also the tables primary key.  My power bi matrix is based on the ID field as well as a number of other fields.  I've created the powerapp visual with all of the same field and the PA visual is interacting and refreshing Power BI but it will only interact with record #1 of the ID field.  It seems the BI visual is not passing the correct ID value to the PA visual.  The value is always 1.  The matrix in the BI visual is set to "don't summarize".  

 

Everything esle seems to be working fine.  I added a new form to the PA that was created and within PBI I can add a new record to the table and it will appear in the PBI matrix.  The only issue it trying to edit an existing record.

 

Has anyone run into this?  Thank you for any help.

2 REPLIES 2
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @iowakrz 

I cannot fully understand it.Please show some screenshots about your issue.

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Try this to understand my problem.

1.  Create a SQL table with an ID field that is the identity as well as the primary key.

 

CREATE TABLE [dbo].[Leeco_Inventory_ComID](
[ComID] [int] IDENTITY (1,1) NOT Null,
[itemindex] [varchar](81) NULL,
[CDate] [datetimeoffset](7) NULL,
[UserID] [varchar](25) NULL,
[Comment] [varchar](255) NULL,
CONSTRAINT [PK__Leeco_In__C475FA25E8610962] PRIMARY KEY CLUSTERED
(
[ComID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO

2. Bring that table with test data into a Power BI report and create a table showing the .

3. In the web version of Power BI use the powerapps visual and select all fields.  Creat a new powerapp.

4.  The powerapp which is created starts with a callery.  Change the default for the gailler to ComID which is the identity field and the primary key.  You will only receive values of 1.  It will not show the incremental values 1, 2, 3....

 

I attached a couple of pictures.

BI PA.pngPA ComID.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors