The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
25 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
28 | |
13 | |
12 | |
12 | |
6 |