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

Find Earliest Date Changing by Slicer

I want to calcuate the first date of transmisson per each program.

 

Program | Tx Date

Spider Man | 26 Aug 2018

Avengers | 27 Jul 2018

Iron Man | 16 Feb 2018

Spider Man | 21 Aug 2018

Iron Man | 13 Feb 2018

Spider Man | 18 Aug 2018

 

The result will be

Program | Transmission Date

Spider Man | 18 Aug 2018

Avengers | 27 Jul 2018

Iron Man | 13 Feb 2018

 

I tried to use CALCULATE ( FIRSTNONBLANK(Transmission[Tx Date],1), ALLEXCEPT(Transmission, Transmission[Program]) ) but calculated value isn't changed when I change the date in Slicer. This calculated value is not dynamic and I want to create the earliest date changed when I move the slicer. Need your help to find out this dynamic value.

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Heonsang

 

You may try to use below measure:

FirstDay =
CALCULATE ( MIN ( transmisson[Tx Date] ), VALUES ( transmisson[Program] ) )

1.png

 

You may also choose 'Earliest' for the 'Tx Date' column.

1.png

 

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-cherch-msft
Employee
Employee

Hi @Heonsang

 

You may try to use below measure:

FirstDay =
CALCULATE ( MIN ( transmisson[Tx Date] ), VALUES ( transmisson[Program] ) )

1.png

 

You may also choose 'Earliest' for the 'Tx Date' column.

1.png

 

Regards,

Cherie

 

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Zubair_Muhammad
Community Champion
Community Champion

Hi @Heonsang

 

Use MIN ( Transmission[Tx Date] )

Evaluation context will take care of your selections


Regards
Zubair

Please try my custom visuals

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.