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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Add yesterday's count in power bi dashboard

 I have columns like (registration date) and (registed_by_id). SO , I have to add a card on my dashboard which will indicate yesterday's registration count. please provide your support.

for referance please look the table below

 

RegistrationDateregistered_by_id
8/7/20221
8/7/20221
8/7/20221
8/7/20221
8/7/20221
8/7/20221
8/7/20221

 

 

this type of data i have. Help me please

1 ACCEPTED SOLUTION
Kishore_KVN
Super User
Super User

Hello @Anonymous , you can create measure for that.

For example my sample data is as below:

Kishore_KVN_1-1687429362190.png

 

If you want to select dynamically like depends on date selection then the measure looks like below:

 

Yesterday's Count = CALCULATE(COUNT('Table'[Registration_ID]),PREVIOUSDAY('Table'[Registration Date]))

 

Output looks as below:

Kishore_KVN_0-1687429266767.png

 

If you want a measure which will picks up previous days count depends on the maximum date in the data then you can try the below measure:

 

Yesterday's Count Auto = CALCULATE(COUNT('Table'[Registration_ID]),DATEADD('Table'[Registration Date],-1,DAY))

 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

 

View solution in original post

1 REPLY 1
Kishore_KVN
Super User
Super User

Hello @Anonymous , you can create measure for that.

For example my sample data is as below:

Kishore_KVN_1-1687429362190.png

 

If you want to select dynamically like depends on date selection then the measure looks like below:

 

Yesterday's Count = CALCULATE(COUNT('Table'[Registration_ID]),PREVIOUSDAY('Table'[Registration Date]))

 

Output looks as below:

Kishore_KVN_0-1687429266767.png

 

If you want a measure which will picks up previous days count depends on the maximum date in the data then you can try the below measure:

 

Yesterday's Count Auto = CALCULATE(COUNT('Table'[Registration_ID]),DATEADD('Table'[Registration Date],-1,DAY))

 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

 

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
Top Kudoed Authors