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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
aqsasaleem
Frequent Visitor

Show Max and min date whatever selected in Date Slicer

I have transactions on different dates i want to show Min and Max date whatever i selected in slicer. Currently my measures are showing whatever transaction min and max date.

 

 

aqsasaleem_2-1705406730197.png

 

aqsasaleem_1-1705406664748.png

 

Statement of Account "MinDate" From "MaxDate" should be 31/05/2012 and 13/02/2024

Measures which i'm currently using are

Selected Min date = CALCULATE ( FORMAT(MIN ( cl_resultset[md_date] ), "dd/mm/yyyy"), ALLSELECTED ( 'cl_resultset' ))
Selected Max date = CALCULATE ( FORMAT(Max ( cl_resultset[md_date] ), "dd/mm/yyyy"), ALLSELECTED ( 'cl_resultset' ))

 

1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

hi, @aqsasaleem 

try below

 

Selected Min date = 
   CALCULATE ( 
       FORMAT(
         MIN (cl_resultset[md_date] ),
         "dd/mm/yyyy"
       ), 
       ALL( cl_resultset[md_date])
    )


Selected Max date = 
   CALCULATE ( 
       FORMAT(
         max (cl_resultset[md_date] ),
         "dd/mm/yyyy"
       ), 
       ALL( cl_resultset[md_date])
    )

 

Dangar332_0-1705412110315.png

 

 

Dangar332_1-1705412139517.png

 

 

View solution in original post

1 REPLY 1
Dangar332
Super User
Super User

hi, @aqsasaleem 

try below

 

Selected Min date = 
   CALCULATE ( 
       FORMAT(
         MIN (cl_resultset[md_date] ),
         "dd/mm/yyyy"
       ), 
       ALL( cl_resultset[md_date])
    )


Selected Max date = 
   CALCULATE ( 
       FORMAT(
         max (cl_resultset[md_date] ),
         "dd/mm/yyyy"
       ), 
       ALL( cl_resultset[md_date])
    )

 

Dangar332_0-1705412110315.png

 

 

Dangar332_1-1705412139517.png

 

 

Helpful resources

Announcements
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!

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.