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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
niteshtrehan89
Helper III
Helper III

Multiple value was supplied where a single value was expected error

Hi All, 

 

I have two tables with me. One is Actual and other is Budget.  I did the append for the two tables using the union and summarize DAX function. 

niteshtrehan89_0-1731666883071.png

I am using the Matrix Visual and created the below measure for the same.

niteshtrehan89_1-1731667163955.png

niteshtrehan89_2-1731667216591.png

When i am expanding it using the + in the matrix visual, then it is showing me the below error message.

niteshtrehan89_3-1731667282802.png

 

need a solution that it should run using the + sign in the matrix visual.

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @niteshtrehan89 ,

 

You cannot use the VALUES and then a = with a single value you need to redo all your syntax to:

 

SELECTEDVALUE(Summary[Header]) = "Asset Avg Balance" && SELECTEDVALUE(Summary[MIS Value]) = "YTD Budget"

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





View solution in original post

Bibiano_Geraldo
Super User
Super User

Hi @niteshtrehan89 ,

The issue lies with the VALUES function. It returns a list of distinct values, which can be used for counting, filtering, or summing, but it doesn't provide a single value. In your IF function logic, a single value is expected to evaluate the conditions. I recommend replacing the VALUES function with the SELECTEDVALUE function, which returns a single value if one exists, or BLANK otherwise.

 

I hope this helps! If it does, please mark it as a solution and consider giving a Kudos.

 

You can learn more about VALUES function here 

Thank you!

View solution in original post

2 REPLIES 2
Bibiano_Geraldo
Super User
Super User

Hi @niteshtrehan89 ,

The issue lies with the VALUES function. It returns a list of distinct values, which can be used for counting, filtering, or summing, but it doesn't provide a single value. In your IF function logic, a single value is expected to evaluate the conditions. I recommend replacing the VALUES function with the SELECTEDVALUE function, which returns a single value if one exists, or BLANK otherwise.

 

I hope this helps! If it does, please mark it as a solution and consider giving a Kudos.

 

You can learn more about VALUES function here 

Thank you!

MFelix
Super User
Super User

Hi @niteshtrehan89 ,

 

You cannot use the VALUES and then a = with a single value you need to redo all your syntax to:

 

SELECTEDVALUE(Summary[Header]) = "Asset Avg Balance" && SELECTEDVALUE(Summary[MIS Value]) = "YTD Budget"

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.