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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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