Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Its really not a complicated thing to do, and there are many versions of what i see people putting up, but what in your opinion, if you are for example creating a measure and you only want to return data for the current month.
is this the most elegant way to do it?
calculate(sum(measure), filter(date, month(now()) = month(date[date])
and year(now()) = year(date[date]))
Proud to be a Super User!
Though not yet proficient, you may try the following boolean expression.
Table1[date] >= DATE ( YEAR ( NOW () ), MONTH ( NOW () ), 1 ) && Table1[date] < DATE ( YEAR ( NOW () ), MONTH ( NOW () ) + 1, 1 )
User | Count |
---|---|
97 | |
78 | |
77 | |
49 | |
26 |