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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
xRTP
Helper V
Helper V

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 @xRTP ,

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

Samarth_18
Community Champion
Community Champion

@xRTP 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 @xRTP ,

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

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!

Samarth_18
Community Champion
Community Champion

@xRTP 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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.