Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a table, I want to groupby Category column, then find Minimum month, can anyone give some advise, thanks.
Regards
Steven
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi @naivecalf ,
Here are the steps you can follow:
1. Create measure.
Measure =
var _rank=
RANKX(FILTER(ALLSELECTED('Table'),[Category]=MAX([Category])),CALCULATE(MAX('Table'[Date])),,ASC,Dense)
return
IF(_rank=1,MAX('Table'[Date]),BLANK())2. Result
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @naivecalf ,
Here are the steps you can follow:
1. Create measure.
Measure =
var _rank=
RANKX(FILTER(ALLSELECTED('Table'),[Category]=MAX([Category])),CALCULATE(MAX('Table'[Date])),,ASC,Dense)
return
IF(_rank=1,MAX('Table'[Date]),BLANK())2. Result
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you, this is helpful to me.
please try.
| Category | Date | Name |
| a | 1/1/2020 | mike |
| a | 2/1/2020 | john |
| a | 3/1/2020 | west |
| e | 4/1/2020 | bob |
| f | 1/1/2020 | mark |
| e | 6/1/2020 | bill |
| f | 6/2/2020 | charle |
| d | 6/3/2020 | niud |
| a | 6/4/2020 | mike |
| b | 3/1/2020 | john |
| b | 4/1/2020 | west |
| b | 5/1/2020 | bob |
| b | 6/1/2020 | mark |
| f | 9/1/2020 | bill |
| f | 10/1/2020 | charle |
| f | 11/1/2020 | niud |
| f | 12/1/2020 | mary |
| b | 3/1/2020 | joy |
| a | 1/1/2020 | benben |
Hi,
You may download my PBI file from here.
Hope this helps.
thank you.
You are welcome. If my reply helped, please mark it as Answer.
Hi,
In the final result, do you want only Category and MonthN columns or do you want to see all columns? Also, so you want a Query Editor or a DAX measures solution?
Hi Ashish,
Thanks you for quick responding, I need all columns, and I want to do it by using DAX measures.
Regards
Steven
Hi,
Share data in a form that i can paste in MS Excel.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!