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

Printing out the date which the user input into the Filter

Hello,

 

I need to be able to print out the date which the user input into the Filter. Is there any way to reference this date in a DAX formula?

 

I have tried MIN, but my data goes back farther than what the user entered.

 

I have tried CALCULATE ( FIRSTDATE ( 'tbl_DailyGifts_v20'[Gift Date] ), FILTER ( 'tbl_DailyGifts_v20'[Gift Date] ) )

 

and also CALCULATE ( FIRSTDATE ( 'tbl_DailyGifts_v20'[Gift Date] ), ALLSELECTED ( 'tbl_DailyGifts_v20'[Gift Date] ) )

 

but these give me the first date for which I have data, not the date which the user entered into the filter. 

 

For example, the user enters 1/1/2021 through today into the filter. The data starts on 1/6/2021. Both of these formulas will return 1/6/2021, but this is confusing people, so I need to be able to print 1/1/2021.

 

Ideas?

 

Thanks,

Esther

1 ACCEPTED SOLUTION

I was able to use the ALLEXCEPT function, and it worked.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@esther21179 , Try like

Minx( allselected('tbl_DailyGifts_v20'), 'tbl_DailyGifts_v20'[Gift Date] )

That didn't work either. Still gave me 1/6/2021, which is the first date for which there is data. Any other idea?

I was able to use the ALLEXCEPT function, and it worked.

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.

Top Solution Authors