Hi,
I have start date which is having dates from 2016 to 2020 so user wants start date dy default is today( Nov17,2020)it's calender approach and end date is by default 6 months i.e (Apr17,2020). How to achieve this?
What i did was have taken disconnected date table and used below code and joined to main table (Start date=Date) but iam not sure how to get by default today's date in start date and 6 months in end date. User shoould be able to select freely like how we are selecting in calender. Kindly suggest.
Solved! Go to Solution.
@Anonymous , As of now you have to create a flag like this and set yes as default value
Default Date = if([Date] >= today() && [Date] <=date(year(today() ),month(today() ), day(today() )), "Yes", "No")
Proud to be a Super User!
@mahoneypat
Hi, So with your calculation i have used it in slider and showing as expected. Let me explain to client if he satisfies i will come back. Thank you. Please let me know if any changes.
Thanks for your time and sugestion. I will come back
Thanks,
Venkat
@Anonymous , As of now you have to create a flag like this and set yes as default value
Default Date = if([Date] >= today() && [Date] <=date(year(today() ),month(today() ), day(today() )), "Yes", "No")
Proud to be a Super User!
You can replace your variable with this expression to get that.
var _cal = CALENDAR(TODAY(),EDATE(TODAY(), 6))
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
445 | |
168 | |
114 | |
55 | |
53 |
User | Count |
---|---|
452 | |
146 | |
130 | |
77 | |
71 |