Forum Discussion
Anonymous
3 years agoNot applicable
Create a Calculated Column to Sum Weekend Values
I have a date table that has calculated column counting all requests submitted on a given day. There are two KPIs that need to be tracked. The first KPI is that each weekday has a capacity for 10 n...
- Anonymous3 years ago
I think I have the answer. I used a variable to get teh value of the previous row...
Weekend Requests =var PrevDay = CALCULATE(SUM('Calendar'[Date on D2A]),DATEADD('Calendar'[Date],-1,DAY))returnIF('Calendar'[DayOfWeekNumber] = 7,'Calendar'[Date on D2A] + PrevDay)
Shaurya
3 years agoMemorable Member
Hi Anonymous,
You can use:
Weekend Requests = IF(DayOfWeekNumber=7, IF(DayOfWeekNumber=6 || DayOfWeekNumber=7, SUM('Table'[Requests])))
Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI