The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
88 | |
71 | |
48 | |
46 |