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
Anonymous
Not applicable

Help count of true and False in the dax

Hi Team below is my data

any body help dax .

Count of TRUE and FALSE  based on TITLE (out should be second table)

TitleApproved1Approved2Approved3Approved4Approved5Approved6
Hardware upgradeFALSETRUEFALSETRUETRUEFALSE
CPUTRUEFALSEFALSEFALSEFALSEFALSE
MouseTRUETRUETRUEFALSEFALSEFALSE
Gartner AccessTRUETRUETRUEFALSEFALSEFALSE
Air con maintainanceFALSEFALSETRUETRUETRUETRUE
Testing environmentFALSEFALSEFALSEFALSEFALSEFALSE

 

 

my out but should be below

Count of true and False based on the title

 

TitleTRUEFALSE
Hardware upgrade33
CPU15
Mouse33
Gartner Access33
Air con maintainance42
Testing environment06
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Unpivot into all Approved column in Approved column

https://radacad.com/pivot-and-unpivot-with-power-bi

The try measure like

TRUE = calculate(countrows(Table),Table[Approved ] ="TRUE")

FALSE= calculate(countrows(Table),Table[Approved ] ="FALSE")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Unpivot into all Approved column in Approved column

https://radacad.com/pivot-and-unpivot-with-power-bi

The try measure like

TRUE = calculate(countrows(Table),Table[Approved ] ="TRUE")

FALSE= calculate(countrows(Table),Table[Approved ] ="FALSE")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
MFelix
Super User
Super User

Hi @Anonymous ,

 

First of all you should unpivot your data in the query editor the you just need to make a matrix with the following setup:

  • Rows: Title
  • Columns: Value (column with TRUE OR FALSE value)
  • Values: Count of attribute (Column with APPROVED1, 2, 3).

 

Check PBIX attach.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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
Top Kudoed Authors