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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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