Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Milozebre
Helper V
Helper V

sum if

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 MondayTuesdayWednesdayThursdayFridaySaturdaySunday
Pierre Cardin7777700
Jean Reno000001010

 

 

I want to know 

Pierre : 5 days

Jean : 2 

 

I read some response here but I cant transpose the solution.

 

Thanl you in advance

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Milozebre,

 

You should unpivot tables first in Query Editor mode.

1.PNG

 

Then, new a measure as below.

Count working days = CALCULATE(COUNT(Table_1[Weekdays]),Table_1[Value]>0)

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Milozebre,

 

You should unpivot tables first in Query Editor mode.

1.PNG

 

Then, new a measure as below.

Count working days = CALCULATE(COUNT(Table_1[Weekdays]),Table_1[Value]>0)

2.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-yulgu-msft

 

Thank you. 

Its working fine. 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors