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.
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")
@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")
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |