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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
bjj8383
Regular Visitor

Working with Measures & Dates, "A single value... cannot be determined" (New User here!)

Basically, I'm trying to track if Closed items were completed on time. If Closed, show me the time between the Due & Closed dates; if not Closed, show me the time between the Due date & today. I've set up this Measure:

 

Timer = IF(srsearchscreen_THIS_WEEK[Status] = Closed, DATEDIFF('srsearchscreen_THIS_WEEK'[Due Date], 'srsearchscreen_THIS_WEEK'[Closed On], DAY), DATEDIFF(TODAY(), 'srsearchscreen_THIS_WEEK'[Due Date], DAY))

 

However: "A single value for column 'Due Date' ... cannot be determined" I'll insert a picture of the entire data column - all values sure look the same to me. Can someone please point me towards my mistake? Tyvm.

 PowerBI_DueDate.jpg

1 ACCEPTED SOLUTION
rsbin
Super User
Super User

@bjj8383 ,

In this case, appears you want to populate a value for each record in your Table.  You want to use a Calculated Column, not a Measure. I'm guessing you are after something that looks like this:

 

rsbin_0-1699039871474.png

Also, be sure to put "Closed" in quotation marks as it is a text value.

Hope this resolves your issue.

Regards,

View solution in original post

1 REPLY 1
rsbin
Super User
Super User

@bjj8383 ,

In this case, appears you want to populate a value for each record in your Table.  You want to use a Calculated Column, not a Measure. I'm guessing you are after something that looks like this:

 

rsbin_0-1699039871474.png

Also, be sure to put "Closed" in quotation marks as it is a text value.

Hope this resolves your issue.

Regards,

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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