Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |