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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Jeyeline
Helper III
Helper III

DAX to count a particular column(string) across different months

Hello Team,

  I would like to visualize data based on two columns- Broken Issue which is either Yes or No and Created date. Now I want to collect data across months for the broken issue "Yes". That is no. of work items with the broken issue for all the months.

 

Seeking guidance on how to create DAX for this?

 

 

1 ACCEPTED SOLUTION
talespin
Solution Sage
Solution Sage

Hi @Jeyeline ,

 

Your date field will filter the table you feed to Calculate, it can be written in many ways and also depends on your datamodel and what fileds you have in your visual. Assuming its just date in visual, you can add this measure. Please replace table name and field name.

 

Measure

---------

CALCULATE( COUNT(Table[Broken Issue]), Table[Broken Issue] = "Yes")

View solution in original post

1 REPLY 1
talespin
Solution Sage
Solution Sage

Hi @Jeyeline ,

 

Your date field will filter the table you feed to Calculate, it can be written in many ways and also depends on your datamodel and what fileds you have in your visual. Assuming its just date in visual, you can add this measure. Please replace table name and field name.

 

Measure

---------

CALCULATE( COUNT(Table[Broken Issue]), Table[Broken Issue] = "Yes")

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.