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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
LGQ
Regular Visitor

Custom Column based in Aggregated Data after Grouping

Hello! Is there a way to  create an IF/THEN function that reads from the aggregated data  nested in each row after grouping by certain column?

 

I grouped by TRACKER  and inserted an index that counts the value appearance over time. I want Power Query to locate the largest number in the index column and assign a classification to it, leaving the rest with another text ("CLOSED" and "OPEN").

 

LGQ_0-1698357734675.png

 

As an alternative I then  expanded and merged the TRACKER and INDEX columns but haven´t found the way to classify it.

 

LGQ_1-1698358139758.png

 

Any suggestions are welcome, Thank you!!

1 REPLY 1
wdx223_Daniel
Super User
Super User

=Table.Combine(Table.TransformColumns(#"Grouped Rows",{"COUNT TRACKER",each Table.CombineColumns(Table.AddIndexColumn(_,"idx",1),{"TRACKER INDEX KEY","idx"},each _{0}&Text.From(_{1}),"TRACKER INDEX KEY")})[COUNT TRACKER])

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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