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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ymirza
Helper II
Helper II

Missing owners not assigned since X days

I have this table below as an example, I want to show in powerBI report, since how many days from current date has the task not assigned with an Owner. The measure would start with "Not assigned since = "

 

IDFunctionCreated dateStatusOwnersNot assigned since
1IT01-DecIssue ClosedAndy 
2HR02-DecIssue openedCharlie 
3HR03-DecIssue openedCharlie 
4SUM04-DecIssue openedMegan 
5Sales05-DecIssue openedHoggard 
6Marketing06-DecIssue openedOwner not assigned15 days
7Marketing07-DecIssue openedOwner not assigned14 days
8Sales08-DecIssue openedOwner not assigned13 days
9IT09-DecIssue ClosedOwner not assigned12 days
10HR10-DecIssue openedOwner not assigned11 days
11Finance11-DecIssue openedJohn 
12Finance12-DecIssue ClosedJohn 
13Finance13-DecIssue openedOwner not assigned9 days
14Customer14-DecIssue openedAdam 
15Customer15-DecIssue ClosedAdam 
16Customer16-DecIssue openedTommy 
17Customer17-DecIssue ClosedTommy 
1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @ymirza

 

You may create a measure as below:

Measure =
IF (
    MAX ( Table1[Owners] ) = "Owner not assigned",
    DATEDIFF ( MAX ( Table1[Created date] ), TODAY (), DAY )
)

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-cherch-msft
Employee
Employee

Hi @ymirza

 

You may create a measure as below:

Measure =
IF (
    MAX ( Table1[Owners] ) = "Owner not assigned",
    DATEDIFF ( MAX ( Table1[Created date] ), TODAY (), DAY )
)

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-cherch-msft, i tried your solution it is giving some values but only returing value 1, instead of actual difference of days. Plus it is hiding all the other rows where owners are assigned.

 Powerbi error.jpg

Hi @ymirza

 

Remove .[Date] in your formula. Click the 'show items with no data' in the values filed.

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @ymirza

 

Could you tell me if your problem has been solved? If it is,kindly mark the helpful answer as a solution and welcome to share your own solution. If not, please share more details about your issue so that we could help further on it.

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

If not assigned since is a column, you can do this:

 

Not assigned since = DATEDIFF([Created Date],TODAY(),DAY)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.