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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Count of date as of yesterday

Hello,

How can i count data that was dated yesterday and store the counted data to a table for visualization? Thanks

2 ACCEPTED SOLUTIONS
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

If I am taking your question correctly then you could use below code:-

Measure =
CALCULATE (
    COUNT ( table[column_to_count] ),
    FILTER ( table, table[date_to_consider] <= TODAY () - 1 )
)

BR,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

@Anonymous Is possible for you to explain it with some sample data in text format with expected output?

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

Hi @Anonymous ,

If I am taking your question correctly then you could use below code:-

Measure =
CALCULATE (
    COUNT ( table[column_to_count] ),
    FILTER ( table, table[date_to_consider] <= TODAY () - 1 )
)

BR,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Thanks again @Samarth_18  but the thing is im calculating for new volume.
Example. In PH date is May 24 and the vendor's new volume date is May 23. So i need to filter all received date dated May 23 for todays new volume. Is it possible? Thanks!

@Anonymous Is possible for you to explain it with some sample data in text format with expected output?

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Anonymous
Not applicable

Hi @Samarth_18 Actually the solution you provides work! Lol, im filtering the wrong date. What a life saver! Thanks a alot!! 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.