Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
Below is the data for which I want to get today's date, if it's in current month. I wrote a formula, which is returning as "Function" in cell value. How to get Today's date in the cells.
if Date.IsInCurrentMonth([End Date])=true then DateTime.LocalNow else [End Date]
End Date | Required date |
12/01/2023 | 12/22/2023 |
11/01/2023 | 11/01/2023 |
10/01/2023 | 10/01/2023 |
When I click on Function it goes to invoked function and shows current time and date. Please help me with this.
Solved! Go to Solution.
Hello! Please try this:
if Date.IsInCurrentMonth([End Date]) then Date.From(DateTime.LocalNow()) else [End Date]
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
Hello! Please try this:
if Date.IsInCurrentMonth([End Date]) then Date.From(DateTime.LocalNow()) else [End Date]
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
@Syndicate_Admin Will the solution be reviewed/accepted?
If this post helps to answer your questions, please consider marking it as a solution so others can find it more quickly when faced with a similar challenge.
Proud to be a Microsoft Fabric Super User
You are close:
if Date.IsInCurrentMonth([End Date])=true then DateTime.LocalNow() else [End Date]
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |