This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi,
I m trying to get Max([Weekly Service Sequence]) each TeamId and group them by values like (1,2,3, 4N'more).
i shared an example data and result sample to explain better.
Excel Link : Download Data
Solved! Go to Solution.
@Ewo Please try below steps
For your 1st Question - Create a New Table as below
Test261Out1 = SUMMARIZE(Test261Grouping,Test261Grouping[TeamId],"MaxWeeklyServiceSequence",MAX(Test261Grouping[WeeklyService]))
Then add a New Column to the above table as
SortKey = SWITCH([MaxWeeklyServiceSequence],1,1,2,2,3,3,4)
For 2nd Question - Create a New Table as below which will take the above created table as input.
Test261Out2 = SUMMARIZE(Test261Out1,Test261Out1[GroupName],Test261Out1[SortKey],"TeamCount",COUNTROWS(Test261Out1))
Then select GroupName field and change the "Sort By Column" under Modelling tab to SortKey field
Proud to be a PBI Community Champion
@Ewo Please try below steps
For your 1st Question - Create a New Table as below
Test261Out1 = SUMMARIZE(Test261Grouping,Test261Grouping[TeamId],"MaxWeeklyServiceSequence",MAX(Test261Grouping[WeeklyService]))
Then add a New Column to the above table as
SortKey = SWITCH([MaxWeeklyServiceSequence],1,1,2,2,3,3,4)
For 2nd Question - Create a New Table as below which will take the above created table as input.
Test261Out2 = SUMMARIZE(Test261Out1,Test261Out1[GroupName],Test261Out1[SortKey],"TeamCount",COUNTROWS(Test261Out1))
Then select GroupName field and change the "Sort By Column" under Modelling tab to SortKey field
Proud to be a PBI Community Champion
Thanks alot @PattemManohar ,
First Summarization and Switch function solved the problem 🙂
I made some changes on it and worked.
Thank you again for showing path.
Best,
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 26 | |
| 25 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 42 | |
| 41 | |
| 40 | |
| 21 | |
| 20 |