Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have a column of values for each month for each of the last 3 years (no blanks) and a separate date table. I am trying to write a measure which captures the value on the last trading day of the previous year, which will dynamically update going forward so in 2018 the measure will give the last value date in Dec 2017. Could someone help me with the time intelligence snytax to do this?
Solved! Go to Solution.
Hi @Absalon29
Try this pattern
Measure = VAR LastTradingDay_LY = LASTDATE ( PREVIOUSYEAR ( VALUES ( TableName[Date] ) ) ) RETURN CALCULATE ( SUM ( TableName[Amount] ), CalendarTable[Date] = LastTradingDay_LY )
Hi Zubair,
I get a blank measure - here is the data I have been using https://1drv.ms/x/s!AiRs1BCuVWhM6EfOsWkw52AbDaq-
Thanks very much, your input is invaluable and much appreciated.
User | Count |
---|---|
127 | |
108 | |
99 | |
63 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |