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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
John02
New Member

return date range from a column

I have a text box at the top of several pages.  I've been manually updating the "Loss Date" range that I display in that table from my data table when I refresh the data.  I'd like to add a formula (DAX?) that would automatically return the "earliest" and "latest" date in a column of "Loss Dates", and paste that in each page so I dont have to update it.  Any recommendations on how I can do that?

 

Thanks in advance -   

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@John02,

 

Try this measure:

 

Loss Date Label = 
"Earliest Loss Date: " & MIN ( Table1[Loss Date] ) & "; " & "Latest Loss Date: "
    & MAX ( Table1[Loss Date] )

 

In the Title properties of the text box, click the "fx" icon and select the measure:

 

DataInsights_0-1649803623439.png

 

Result:

 

DataInsights_1-1649803633403.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
John02
New Member

This was perfect!  Thanks so much -

DataInsights
Super User
Super User

@John02,

 

Try this measure:

 

Loss Date Label = 
"Earliest Loss Date: " & MIN ( Table1[Loss Date] ) & "; " & "Latest Loss Date: "
    & MAX ( Table1[Loss Date] )

 

In the Title properties of the text box, click the "fx" icon and select the measure:

 

DataInsights_0-1649803623439.png

 

Result:

 

DataInsights_1-1649803633403.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors