Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Hello!
Thanks
I don't know how you'd do it in DAX, but in Power Query, you could first Group By Employee Number, use a Count aggregation (let's name it "RowCount" and an All Rows aggregation (let's name it "Details", and then add an Index (beginning at 1) to each of the nested tables, and subtracting 1 from each Index value where the count of rows is 1. So after the Group By step:
Table.TransformColumns(PriorStepOrTableName, "Details", each Table.AddIndexColumn(_, "Count", 1, 1), Int64.Type)
Now you can expand the column, but your single row value will be 1 instead of zero. So now you can go
Table.AddColumn(PriorStepOrTableName, "CorrectCount", each if [RowCount] = 1 then 0 else [Count])
--Nate
Good to go!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |