Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Good Afternoon,
I am trying to create a measure to get one month less from the Min date so:
dateadd(MIN(hire[start_date]),-1,MONTH)
But im getting not correct type for the Min(hire[start_date]) section.
How do i correct this?
Thank you
Hi @sovereignauto ,
What do you expect this code to return?
DATEADD returns a table with a set of dates. And the first parameter is the entity column
The full formula is what MIN(hire[start_date]) may return here is the minimum value of [start_date] in the current filtering context.
If you expect to return a date, try the EDATE function.
try like:
= EDATE(MIN('hire'[start_date]),-1)
or the smallest of all dates:
= EDATE(CALCULATE(MIN('hire'[start_date]),ALL()),-1)
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
Do you have a date table?
do you need the result of the measure to be an actual date?
Proud to be a Super User!
Paul on Linkedin.
Yes i have a Datetable
the result of the measure would end up being 90% of a count of hire starts from the previous month
What is the Min date supposed to be calculating?
What is the structure of the data?
Proud to be a Super User!
Paul on Linkedin.
So i have a table of hire start dates (with other information)
and im dropping months into the columns of a Matrix
So what i want to do is get the Min of the column (so basically start of that given month) and then minus 1 month from that.
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 |
---|---|
76 | |
75 | |
53 | |
37 | |
32 |
User | Count |
---|---|
99 | |
56 | |
50 | |
43 | |
40 |