Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good morning Community,
I try to make a sum if with column.
I have a table with name, days and how many hours the guy work per day.
| Nom | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
| Pierre Cardin | 7 | 7 | 7 | 7 | 7 | 0 | 0 |
| Jean Reno | 0 | 0 | 0 | 0 | 0 | 10 | 10 |
I want to know
Pierre : 5 days
Jean : 2
I read some response here but I cant transpose the solution.
Thanl you in advance
Solved! Go to Solution.
Hi @Milozebre,
You should unpivot tables first in Query Editor mode.
Then, new a measure as below.
Count working days = CALCULATE(COUNT(Table_1[Weekdays]),Table_1[Value]>0)
Best regards,
Yuliana Gu
Hi @Milozebre,
You should unpivot tables first in Query Editor mode.
Then, new a measure as below.
Count working days = CALCULATE(COUNT(Table_1[Weekdays]),Table_1[Value]>0)
Best regards,
Yuliana Gu
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!