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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
saravdinther12
Frequent Visitor

Yellow Column

saravdinther12_0-1679300287308.png

starteindticketnummerticketnummer.1behandelaarsgroepbehandelaarsgroep.1bloknummereerste startdatumlaatste einddatum
8-03-23 15:4210-03-23 6:06abcabcData TeamData Team18-03-23 15:4214-03-23 15:50
10-03-23 6:0611-03-23 21:42abcabcData TeamData Team18-03-23 15:4214-03-23 15:50
11-03-23 21:4214-03-23 15:42abcabcData TeamData Team18-03-23 15:4214-03-23 15:50
14-03-23 15:4214-03-23 15:50abcabcData TeamOrder team18-03-23 15:4214-03-23 15:50
14-3-2023 15:5015-3-2023 11:15abcabcOrder teamOrder team214-03-23 15:5015-03-23 15:52
15-3-2023 11:1515-3-2023 15:52abcabcOrder teamData Team214-03-23 15:5015-03-23 15:52
15-3-2023 15:5215-3-2023 15:54abcabcData TeamData Team315-03-23 15:5215-03-23 15:54
15-3-2023 15:54 abc Data Team 315-03-23 15:52 
in the image you see a yellow column and I would like to create it in Power Query. This column depends on the treatment group (behandelaarsgroep) and the ticket number (ticketnummer). If ticketnummer = ticketnummer.1 and behandelaarsgroep = behandelaarsgroep.1 then the same number as the row above. If 1 of the 2 is not equal then the number above + 1.
I come back every time in a circular reference. Can someone help me with this?

 😊

2 REPLIES 2
serpiva64
Solution Sage
Solution Sage

Hi,

take a look at the attached file.

i have grouped using  GroupKind.Local (see https://learn.microsoft.com/en-us/powerquery-m/table-group)

then add a index

If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

KeyurPatel14
Responsive Resident
Responsive Resident

HI @saravdinther12 ,
Please provide sample data so that I can copy it directly to my Power Query.
Thank you.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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