Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone,
I want to get values of yesterday from the table below:
| Date | Com | Amount |
| 1/14 | A | 100 |
| 1/15 | A | 200 |
| 1/14 | B | 0 |
| 1/15 | B | 200 |
| 1/14 | C | 200 |
| 1/15 | C | 300 |
| 1/14 | D | 250 |
| 1/15 | D | 0 |
If today was 1/15 the values would be like below:
A: 100 B: 0 C: 200 D:250
To do that, I tried Measure and Caluculated Column below:
Column = TODAY()
Measure = CALCULATE(SUM('Sheet1'[Amount]), dateadd('Sheet1'[Column], -1, Day))
But nothing appeared on Table visual.
And also tried the below. but the output was the same as the original table data:
Column = TODAY() -1
Measure = CALCULATE(SUM('Sheet1'[Amount]), dateadd('Sheet1'[Column], 0, Day))
Any advice please?
Thanks,
Vladi
Hello @PbiCeo ,
Please try this measure
Please try this measure expression
Measure = CALCULATE(SUM('Sheet1'[Amount]), 'Sheet1'[Date] = TODAY() - 1)
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thy the following formula in a measure.
Measure = CALCULATE(MAX('Sheet1'[Amount]), dateadd(Sheet1[Date], -1, Day))Then create a new table and add the field 'Com' and the 'Measure'
@themistoklis ,
Thank you for your advice.
Actually, it gets values of a previous day of the newest data.
I want to get values of yesterday. For example, I open PBIX on 1/15, values should be of 1/14.
How can I do with Today function?
Thank you,
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |