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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sonalim
Frequent Visitor

Group by column and to get other column

I am trying to group by requisition -code and then want to get max requisition id with respect to that code,and some other column data with respect to that  requisition code ,i tried a lot but not getting the answer,

please help me in this regard grp by rqstn code,want max no of rqstn idgrp by rqstn code,want max no of rqstn id

3 REPLIES 3
Sonalim
Frequent Visitor

Actually i want like count of requisition code after( group by requisition code ,with max restn id ) with some other column condition also

You can just create a count measure for the count. For example, in a matrix, put requisition code in rows. In values you can put the measure I gave you that will give you the max ID, then you can add the measure for count of IDs, and whatever other elements you want 🙂





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





audreygerred
Super User
Super User

Hi! Try below:

Req ID Max =
CALCULATE (
    MAXX (
        VALUES('Table'[Requisition_Code]),
            MAX('Table'[Requisition_ID])
        )
    )




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors