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
Nivas538
Employee
Employee

How do we update blank values with selected date value

Hi All,

 

Wanted to update blank values in Date column with Selected value (Minimum Value: 08-08-2019 ) Dynamically ?

 

Date Slicer

For ex: Capture12.PNG

1. Above slicer is the Date slicer with Between values , When change date in the slicer like as above snap , need to update blank value with minium value selected (Ex: 08-08-2019) in the slicer

                 and the same way if we change the date slicer like below  need to update blank value with minium value selected (Ex: 02-09-2020) in the slicer

Capture34.PNG

 

thanks,

Sri

1 ACCEPTED SOLUTION

@Nivas538 

 

Just drag [Date] from a disconnected calendar table to Slicer, and use MIN function.

MIN ( 'Calendar'[Date] )

 

Community Support Team _ Sam Zha
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

4 REPLIES 4
Anonymous
Not applicable

declare @date datetime; set @date = null
--declare @date datetime; set @date = '2015-01-01'

select coalesce( convert( varchar(10), @date, 103 ), '')

Greg_Deckler
Super User
Super User

If you are truly trying to update a column this will not work. Columns are static, calculated at the time of data refresh. Columns are not dynamic like measures. Thus, you can never have a measure update a column on the fly (dynamically). Only at refresh.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks for the quick response. 

 

With out updating column, Can we create measure with same condition  ? 

 

for Ex: 

S_date_Measure  = IF(SELECTEDVALUERegistration[StartDate],MIN(Registration[StartDate]))=BLANK(),1,2)
 
Instead of 1 we need selected value from slicer
 
Thanks,
Sri

@Nivas538 

 

Just drag [Date] from a disconnected calendar table to Slicer, and use MIN function.

MIN ( 'Calendar'[Date] )

 

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

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.