Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I'm using the following measure to show LTM Actual Sales but am getting an incorrect figure for February 2017 which I'm thinking must be something to do with 2016 being a leap year? Any ideas how I can work around this?
LTM Actual Sales = CALCULATE( [Actual Sales], DATESBETWEEN( DateTable[Date], NEXTDAY (SAMEPERIODLASTYEAR ( LASTDATE(DateTable[Date] ) ) ), LASTDATE(DateTable[Date]) ) )
Solved! Go to Solution.
I solved this by swapping the order of the formulas around so I now have:
LTM Actual Sales = CALCULATE( [Actual Sales], DATESBETWEEN( DateTable[Date], SAMEPERIODLASTYEAR( NEXTDAY ( LASTDATE(DateTable[Date] ) ) ), LASTDATE(DateTable[Date]) ) )
I solved this by swapping the order of the formulas around so I now have:
LTM Actual Sales = CALCULATE( [Actual Sales], DATESBETWEEN( DateTable[Date], SAMEPERIODLASTYEAR( NEXTDAY ( LASTDATE(DateTable[Date] ) ) ), LASTDATE(DateTable[Date]) ) )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
69 | |
66 | |
51 | |
32 |
User | Count |
---|---|
114 | |
99 | |
75 | |
65 | |
40 |