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.
Dear all,
I have created a measure that shows dynamic calendar, which ranges from first date to last date of certain report.
However errors popped out, can you pls shed a light on this measure? Thanks.
----------------------------------------------
Do you have auto date/time enabled? If so I think you would need to use
DynamicDate =
ADDCOLUMNS (
CALENDAR (
MIN ( 'TicketList'[Created].[Date] ),
MAX ( 'TicketList'[Created].[Date] )
),
"Year", YEAR ( [Date] ),
"Quarter", ROUNDUP ( MONTH ( [Date] ) / 3, 0 ),
"Month", MONTH ( [Date] ),
"Week", WEEKNUM ( [Date] ),
"Month Year",
YEAR ( [Date] ) * 100
+ MONTH ( [Date] ),
"WeekDay", WEEKDAY ( [Date] )
)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
12 | |
9 | |
7 |