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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-yohua-msft
Community Support
Community Support

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))

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors