Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone,
I really got stuck with this one. I can't find any help for the PREVIOUSDAY function. I need to add a column with the previous date's value for a certain value in another column. My dates are not continuous. Example:
Segment Date UniqueOpenRate
WiFi 1/3/2020 15%
Hotel concierge 1/3/2020 14%
WiFi 2/3/2020 16%
Hotel Concierge 2/3/2020 13%
I need to be able to add a new column where I set the previous value for each Segment:
Segment Date PrevOpenRate
WiFi 2/3/2020 15%
How can I do that?
Thanks!
Stan
Solved! Go to Solution.
This works! Thank you so much! Yuu saved me so much time!
Hi @Anonymous
try Measure
Measure =
var _curDate = MAX('Table'[Date])
var _prevDate = CALCULATE(MAX('Table'[Date]), ALLEXCEPT('Table','Table'[Segment]),'Table'[Date] < _curDate)
RETURN
CALCULATE(SUM('Table'[UniqueOpenRate]), FILTER(ALLEXCEPT('Table','Table'[Segment]),'Table'[Date] = _prevDate))
This works! Thank you so much! Yuu saved me so much time!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |