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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Mani_1
Frequent Visitor

Couunt of files till yesterday

Hi,

I am trying to count the files till yesterday for the current month so i used the Dax as follows

File Count =
CALCULATE(
    COUNT('001'[File]),
    FILTER('001','001'[Date - Order]<=(TODAY()-1)), FILTER('001','001'[Date - Order]= [Current month]))
But it is not working 
1 ACCEPTED SOLUTION

Hi @Mani_1 

You can try using 

File Count =
CALCULATE(COUNT('001'[File]),
'001'[Date - Order] <= TODAY() - 1,
'001'[Date - Order] >= DATE(YEAR(TODAY()), MONTH(TODAY()), 1)
)
Thank you 
Hope this will help you.

View solution in original post

1 REPLY 1

Hi @Mani_1 

You can try using 

File Count =
CALCULATE(COUNT('001'[File]),
'001'[Date - Order] <= TODAY() - 1,
'001'[Date - Order] >= DATE(YEAR(TODAY()), MONTH(TODAY()), 1)
)
Thank you 
Hope this will help you.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors