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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Date filter in measure DAX

Hello everyone


I want to make a measurement, calculate the number of subscriptions filtered by a date, but I can't

How to add a date filter in the measure?

I thank you in advance

 

Nuber_Subscriptions=
CALCULATE(
COUNT('DWH_D_Abonnés'[id_user_account]),
DWH_F_Souscription[date_subscription]<= 01/10/2022
)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you very much! it works

View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

Try:

Nuber_Subscriptions =
CALCULATE (
    COUNT ( 'DWH_D_Abonnés'[id_user_account] ),
    FILTER (
        DWH_F_Souscription,
        DWH_F_Souscription[date_subscription] <= DATE ( 2022, 10, 1 )
    )
)




Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Anonymous
Not applicable

Thank you very much! it works

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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