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.
Hello
Good Morning !
I have a table with 31 columns that have values equal to 1 or 0.
I need to know how many times the number 1 appears in all columns, does any have any suggestions other than calculate and count 31 time?
Thank you so much in advance
Solved! Go to Solution.
@Anonymous , On of the way is unpivot and make one column then you can sum up the new column.
Or
Sumx(Table, [Col1]+[Col2]) //Add all 31
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |