Forum Discussion
aashton
Helper V
1 year agoDATEDIFF with SUM not working
In Power BI I've created a table with Pay Period Start Date, Pay Period End DAte, Check Date. I have a calculated column to find the number of days in a pay period ( I tried a million variations of...
parry2k
Super User
1 year agoaashton or try this:
TotalDaysLastMonth =
SUMX(
SUMMARIZE (
FILTER(
'Pay Periods Bi-weekly',
'Pay Periods Bi-weekly'[Check Date Last Month] = 1
),
'Pay Periods Bi-weekly'[Pay Period Start Date],
'Pay Periods Bi-weekly'[Pay Period End Date],
'Pay Periods Bi-weekly'[Days Pay Period] )
)
[Days Pay Period]
)aashton
Helper V
1 year agoSyntax error on this, missing a comma??
TotalDaysLastMonth =
SUMX(
SUMMARIZE (
FILTER(
'Pay Periods Bi-weekly',
'Pay Periods Bi-weekly'[Check Date Last Month] = 1
),
'Pay Periods Bi-weekly'[PayPeriodStart],
'Pay Periods Bi-weekly'[PayPeriodEnd],
'Pay Periods Bi-weekly'[Days Pay Period] )
)
[Days Pay Period]
)