Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi!
Forgive me, this is probably really easy but I'm still relatively new to DAX and have to ggogle everything... I have a table with columns Jun - Mar (rows are staff members) with "Y" or "N" in, dependent on whether the staff member has completed a form each month. I'm struggling to find a DAX to look at the whole table and count the total number of "Y"'s without having to filter each column individually within the DAX. Can anyone advise please?
Many thanks
Solved! Go to Solution.
Hi @zoeanne7
you need to first unpivot the table in power query. The 10 columns would be converted into one attribute column (month) and one value column (Y or N). Then a simple CONTROWS - FILTER will do.
Hi @zoeanne7
you need to first unpivot the table in power query. The 10 columns would be converted into one attribute column (month) and one value column (Y or N). Then a simple CONTROWS - FILTER will do.
Thank you so much, that has revolutionised my report!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |