various shenanigans.

Posts by mmwheeler:

DAX: Add Business Days to Date

DAX: Add Business Days to Date

DAX calculated column code to add business days or network days to a date. VAR __Date = IF(Table1[StartDate] <> BLANK(), Table1[StartDate], date(2000, 1, 1)) // Days to Add; in my use case, the # of days was dependent on a category value. You can just set this a specific number […]

Power BI: Plan vs Actual Line Charts

Request was to show a Running Total of Job Vacancies and Filled Vacancies by Target Date. First, I created a Calendar table: Calendar = CALENDAR(DATE(2021,1,1),DATE(2021,12,31))Second, I had to create a Running Total of Job Vacancies from Jan 1st thru the Target Date. CountTotalRunning = CALCULATE(    COUNTA(‘Vacancies'[ID]),    FILTER(        ALLSELECTED(‘Vacancies’),             ‘Vacancies'[Need By Date] <=MAX(‘Calendar'[Date])    )) […]

Close Bitnami banner
Bitnami