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! Learn more

Reply
CV8
Regular Visitor

Need help on DAX for Status and Grouping

Hi,

 

I'm trying to find a DAX to help me count each type of status by each group.  This is an example of the data I'm starting with:

BI Help.png

This is what I'm trying to get to:

BI help result.png

 

 

2 ACCEPTED SOLUTIONS
Irwan
Super User
Super User

hello @CV8 

 

please check if this accomodate your need.

 

1. create new table with following DAX:

Summarize =
var _Group = SUMMARIZE('Table','Table'[Group])
var _Status = SUMMARIZE('Table','Table'[Status])
Return
GENERATE(_Group,_Status)
Irwan_0-1721260001239.png

 

2. create calculated column for counting

Count =
var _Count = CALCULATE(COUNTROWS('Table'),FILTER('Table','Summarize'[Group]='Table'[Group]&&'Summarize'[Status]='Table'[Status]))
Return
IF(
    ISBLANK(_Count),
    0,
    _Count
)
Irwan_1-1721260105453.png

 

Hope this will help you.

Thank you.

View solution in original post

CV8
Regular Visitor

That worked.  Thank you!

View solution in original post

3 REPLIES 3
CV8
Regular Visitor

That worked.  Thank you!

hello @CV8 

 

glad to be a help.


Thank you.

Irwan
Super User
Super User

hello @CV8 

 

please check if this accomodate your need.

 

1. create new table with following DAX:

Summarize =
var _Group = SUMMARIZE('Table','Table'[Group])
var _Status = SUMMARIZE('Table','Table'[Status])
Return
GENERATE(_Group,_Status)
Irwan_0-1721260001239.png

 

2. create calculated column for counting

Count =
var _Count = CALCULATE(COUNTROWS('Table'),FILTER('Table','Summarize'[Group]='Table'[Group]&&'Summarize'[Status]='Table'[Status]))
Return
IF(
    ISBLANK(_Count),
    0,
    _Count
)
Irwan_1-1721260105453.png

 

Hope this will help you.

Thank you.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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