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

dax: if count of atleast one true in a group then true

I have a Table Student and the columns are Group and Pass.

I need to create a measure where:

if even one feild in pass is True, then the group should be TRUE else it should be a false.

Screen Shot 2017-12-10 at 12.05.50 PM.png

I have a measure which looks like below which does not seem to give me the write result.

Measure:= if(maxa('Student'[Pass]) = 1, true(),false())
2 ACCEPTED SOLUTIONS
BILASolution
Solution Specialist
Solution Specialist

Hi @gene

 

You could try with this measure....

 

True-False = 
IF
(
	SUMX
	(
		ADDCOLUMNS(Student;"NumPass";IF(Student[Pass];1;0))
		;[NumPass]
	) >= 1 ; TRUE() ; FALSE()
) 

I hope it helps

 

Regards

BILASolution

View solution in original post

@gene

 

Just another way of doing it

 

True-False = CALCULATE(countrows(Student),Student[Pass]=True)>=1

View solution in original post

2 REPLIES 2
BILASolution
Solution Specialist
Solution Specialist

Hi @gene

 

You could try with this measure....

 

True-False = 
IF
(
	SUMX
	(
		ADDCOLUMNS(Student;"NumPass";IF(Student[Pass];1;0))
		;[NumPass]
	) >= 1 ; TRUE() ; FALSE()
) 

I hope it helps

 

Regards

BILASolution

@gene

 

Just another way of doing it

 

True-False = CALCULATE(countrows(Student),Student[Pass]=True)>=1

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