Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
when Im Created dax new Column Like
Date= calendar(date(2013,1,1),date(2016,12,31)
im getting error like
" A table of multiple values was supplied where a single value was expected "
Solved! Go to Solution.
HI @SrinuReddy,
Calendar function can't direct use in calculate column, you need to do some summary for result table to summary result.
Sample:
Date = COUNTROWS ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) ) Date = MAX ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) ) Date = MIN ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )
Can you share some sample data with expected result to help us clear your requirement?
Regards,
Xiaoxin Sheng
CALENDAR returns a table so you have to use New Table instead of New Column
@Anonymous
but i want do DAX calculation On Existed Table..
HI @SrinuReddy,
Calendar function can't direct use in calculate column, you need to do some summary for result table to summary result.
Sample:
Date = COUNTROWS ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) ) Date = MAX ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) ) Date = MIN ( CALENDAR ( DATE ( 2013, 1, 1 ), DATE ( 2016, 12, 31 ) ) )
Can you share some sample data with expected result to help us clear your requirement?
Regards,
Xiaoxin Sheng
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.