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
Saurabh129
Frequent Visitor

Help needed with DAX measure - Quick

Looking for help with DAX

I have a measure [Homes Completed] which calculates the number of homes completed by the completion date

dim_date table is connected to the completion date

I have a date slicer visual in  report as well  with start date and end date 

I am looking for a new measure which will show Homes completed before the end date in the date slicer, irrespective of the start date

In short, I want the start date in the slicer  to be ignored for the new measure

thanks for your help with this

2 REPLIES 2
Anonymous
Not applicable

Hi, @Saurabh129 

Thanks for the reply from @amitchandak , please allow me to provide another insight:

Maybe you can create a new measure and try the following dax:

Homes Completed Before End Date = 
CALCULATE(
    [Homes Completed],
    FILTER(
        ALL(dim_date[Date]),
        dim_date[Date] <= MAX(dim_date[Date])
    )
)

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

amitchandak
Super User
Super User

@Saurabh129 , Created a disconnected date table, do not join with date of you table and then have measure like

 

Completed before selected=

var _max = maxx(allselected(Date), date[Date])

return

countrows(filter(Table, Table[End Date] < _max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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