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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.