Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

MDX script error-Value() function error

Hi All,

I am trying to create a measure where trying to compare the year .

here PersonsYrValue = VALUES(table[Year]) where  year is base column of the table.

while using the base column"year" in a measure I am getting below error.

I also tried using FIRSTNONBLANK value function,but its not working.

Any suggestion would be appreciated.

 

DAX_Learner07_0-1613028162331.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , if this a measure you need have

Max(table[Year])

or try [PersonsYrValue] in {2020}

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous,

 

The error message shows that the measure return multiple values.

Could you provide details about the measure?

 

Best Regards,

Link

amitchandak
Super User
Super User

@Anonymous , if this a measure you need have

Max(table[Year])

or try [PersonsYrValue] in {2020}

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.