The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |