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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.