Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello,
Can anyone help me trouble shoot why my dax formula would suddenly calculate (blank)? It has never done this to me before.
Very simple if you run this code in DAX Studio:
EVALUATE
VAR UsedDate = TODAY() - 2 // today must be 2021-05-03
VAR FirstDayOfMonth =
DATE( YEAR( UsedDate ), MONTH( UsedDate ), 1 )
VAR WorkDays =
ADDCOLUMNS(
CALENDAR(
FirstDayOfMonth,
UsedDate
),
"WeekDayNumber",
WEEKDAY(
[Date],
2
)
)
-- [WeekDayNumber] < 6
RETURN
WorkDays
Thanks! I am still getting an error and I am not sure why? I am seeing it as infinity in calculations or (blank)
User | Count |
---|---|
47 | |
27 | |
23 | |
18 | |
15 |
User | Count |
---|---|
55 | |
34 | |
18 | |
17 | |
15 |