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
Anonymous
Not applicable

Next available date

Hi Team,

 

Need your help in creating a measure to select only next available date(highlighted in yellow) from column "Next upload" depending on the date in column "Last upload". Dates will change depending on the dump.

Next upload.PNG

 

Thanks and regards

Abhijit

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi All,

 

I am able to solve this issue.

 

Here is the code:

 

Next Upload Date =
var currentDate = TODAY()
var currentSF = MAX(Merge1[Data Sourcing Details])
return
CALCULATE(MIN(Merge1[Next Upload]),FILTER(ALL(Merge1),Merge1[Data Sourcing Details]=currentSF&&Merge1[Next Upload]>=TODAY()))

 

 

Regards

Abhijit

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi All,

 

I am able to solve this issue.

 

Here is the code:

 

Next Upload Date =
var currentDate = TODAY()
var currentSF = MAX(Merge1[Data Sourcing Details])
return
CALCULATE(MIN(Merge1[Next Upload]),FILTER(ALL(Merge1),Merge1[Data Sourcing Details]=currentSF&&Merge1[Next Upload]>=TODAY()))

 

 

Regards

Abhijit

Greg_Deckler
Super User
Super User

Can you explain this a little bit? I'm not clear on what exactly the relationship between last date and next available date is. 

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ 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...
Anonymous
Not applicable

Hi @Greg_Deckler,

 

I am creating a new consolidate view where I just need immediate next date from Column "Next Upload" based on the date from "Last upload".

 

Here is the view:

Output.PNG

 

Thanks

Abhijit

Hi @Anonymous,

 

Can you please share some sample data/pbix file for test and code formula? You can upload to onedrive or google drive and share file link here.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help 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.

Top Solution Authors