March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I want a cumulative line chart for PY and CY sales on the same visual. I have it working right now, except I want PY sales to show for the whole year, not just YTD like CY sales are. So, it looks like this:
but I want to see all of the previous year sales.
This is my measure right now.
IncentiveSumTestPY =
var yearnum = LOOKUPVALUE('dw dimDate'[YearNum],'dw dimDate'[FullDate], today())
RETURN
if(max('dw dimDate'[FullDate])>today(), blank(),
CALCULATE(sum('dw factSales'[IncentiveSales]), filter(all('dw dimDate'), 'dw dimDate'[DayNumOfYear]<=max('dw dimDate'[DayNumOfYear])),'dw dimDate'[YearNum]=yearnum-1
))
Solved! Go to Solution.
Nevermind, I solved this myself.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |