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
datadavebi
New Member

need help with DAX in power bi from excel

please help - I have reproduced this in excel -

Created a pivot, filtered on status (1-10, but I just want id which has been in status 1/2/3/4), rows are ids and the value is the count of status, which is the required answer.

I am aware that by using the matrix as a viz you can replicate the same but I have to build some another viz and I am unable to figure the DAX for this.

Any articles, anything will help here.

For example, an id has been in status (1,2,3) - the count of status will be 3...

an id has been in status (1,2) - the count of status will be 2

1 ACCEPTED SOLUTION
Rayshin
Memorable Member
Memorable Member

Should be something like this.

YourMeasure =
CALCULATE(
COUNTROWS(YourTable)
,FILTER(
ALLEXCEPT(YourTable,YourIDColumn)
,YourTable[YourStatusColumn] in {1,2,3,4}
)
)

View solution in original post

2 REPLIES 2
Rayshin
Memorable Member
Memorable Member

Should be something like this.

YourMeasure =
CALCULATE(
COUNTROWS(YourTable)
,FILTER(
ALLEXCEPT(YourTable,YourIDColumn)
,YourTable[YourStatusColumn] in {1,2,3,4}
)
)

I spent like hours on this yesterday.. thanks a ton gentleman.

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