How to get the first day of current month measure with Year parameter in Power BI?

浪子不回头ぞ 提交于 2021-01-03 06:47:41

问题


Seems like it should be very simple, but I still couldn't fine the way to get the first day of current month having parameter "Year"

So if parameter year 2018 - I need May 1,2018

if parameter year 2017 - need May 1, 2017

etc.

I tried to use DATE function, but the year will be dynamic.

How simply choose the first day of the month?

Thanks


回答1:


I'm not sure how your year parameter is set up, but how about something along these lines?

FirstDayOfCurrentMonth = DATE([Year Parameter], MONTH(TODAY()), 1)


来源:https://stackoverflow.com/questions/50515594/how-to-get-the-first-day-of-current-month-measure-with-year-parameter-in-power-b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!