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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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