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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
darkmetrics
Helper I
Helper I

Why I am getting error "can not determine single value for column"?

Good afternoon! I have a Sales table loaded to Power BI. It contains historical data about sales.

Following this guide (video_tutorial ).

I want to do the same as demonstrated in video. I want to separate positive and negative sales through DAX formula. So I right-click my mouse on the "Sales" table and select option "Create new meausure". After that I type the code for this measure like that (in line with recommendations from video tutorial):

 

 

Negative sales =
VAR SalesAmt = 'Sales table name '[Sales column name]
VAR Result = IF(SalesAmt < 0, SalesAmt, 0)
RETURN SalesAmt 

 

However, I am getting the error "can not determine single value Sales..." What I am doing wrong and why everything is ok in the video?

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

In the video he is using a measure, not a column reference. You could define a measure like

Sales Amount = SUM('Sales table name '[Sales column name])

and then use that in the code instead of the column reference

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

In the video he is using a measure, not a column reference. You could define a measure like

Sales Amount = SUM('Sales table name '[Sales column name])

and then use that in the code instead of the column reference

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.