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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.