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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jessimica1018
Helper II
Helper II

Card with Date Range - Last Date Issues

Hey all!!!

I have a measure to pull the date range of the filters, well it should.... 
The LastDate is pulling 12/31/2022 instead of the date on the filter.

Date Range = FIRSTDATE('Fuze Calls'[Calls Started Date]) &" - "& LASTDATE('Fuze Calls'[Calls Started Date].[Date])
 
Any ideas on how to get this to work???
 
jessimica1018_0-1652409903289.png

 

jessimica1018_1-1652409939824.png

 

1 ACCEPTED SOLUTION
TheoC
Super User
Super User

Hi @jessimica1018 

 

You may need to wrap your FIRSTDATE and LASTDATE in a CALCULATE ( ..... , ALLSELECTED ( 'Table'[Calls Started Date] ) )... if you do this, this should hopefully reflect the filtered dates.

 

Measure = 

CALCULATE (
FIRSTDATE 

'Fuze Calls'[Calls Started Date] ) ,
ALLSELECTED ( 'Fuze Calls'[Calls Started Date] )
) &
" - "&
CALCULATE (
LASTDATE ( 
'Fuze Calls'[Calls Started Date] ) ,
ALLSELECTED ( 'Fuze Calls'[Calls Started Date] )
)

 

I haven't tested the syntax but hopefully it works!

 

Let me know how it goes.

 

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

4 REPLIES 4
jessimica1018
Helper II
Helper II

I did end up getting this to work - I did a date table and then built the exact same messure I built the first time and it worked!! .....No clue why..... but it's all good now!

TheoC
Super User
Super User

Hi @jessimica1018 

 

You may need to wrap your FIRSTDATE and LASTDATE in a CALCULATE ( ..... , ALLSELECTED ( 'Table'[Calls Started Date] ) )... if you do this, this should hopefully reflect the filtered dates.

 

Measure = 

CALCULATE (
FIRSTDATE 

'Fuze Calls'[Calls Started Date] ) ,
ALLSELECTED ( 'Fuze Calls'[Calls Started Date] )
) &
" - "&
CALCULATE (
LASTDATE ( 
'Fuze Calls'[Calls Started Date] ) ,
ALLSELECTED ( 'Fuze Calls'[Calls Started Date] )
)

 

I haven't tested the syntax but hopefully it works!

 

Let me know how it goes.

 

Theo

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Sadly no luck, it is a nice measure though!

jessimica1018_0-1652453059006.png

I'll keep working at it and playing around with formulas to see if anything sticks.

 

Thank you!

Hi @jessimica1018 sorry it didn't work for you. It's weird as I tested the syntax and all looked good. Glad it got resolved though! 🙂

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.