Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JessicaM
Frequent Visitor

Get yesterday values from Calculated formula

Hi!

 

I´m trying to get the values regarding yesterday. I have a calendar table and the information that I want to calculate in another table. I´m using this formula:

CALCULATE(COUNTROWS(tableA),DATEADD('Calendar Table'[Date] = TODAY(),-1,day))

The goal is to get the number of rows created yesterday (also I have the same issue when I try to get data from 7 days before)

 

Any ideas about why is not working?

Thanks!

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@JessicaM 

 

Can you try the following formula:

Measure = CALCULATE(COUNTROWS(tableA), Filter('Calendar Table', 'Calendar Table'[Date] = TODAY()-1))

 

View solution in original post

2 REPLIES 2
JessicaM
Frequent Visitor

@themistoklis  thanks a lot! Now it is working perfectly! 🙂

Thanks!

themistoklis
Community Champion
Community Champion

@JessicaM 

 

Can you try the following formula:

Measure = CALCULATE(COUNTROWS(tableA), Filter('Calendar Table', 'Calendar Table'[Date] = TODAY()-1))

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors