cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
datadad84
Advocate IV
Advocate IV

USERELATIONSHIP problem with appended Query

I have items created and closed each month. This was working for years and then we appended data from a new source. Since appending the query, this measure is no longer working. My current relationship from the appended source to my date table is as follows. The relationship uses the creation date. My measure uses the USERELATIONSHIP function to get the number of closed items.

     

datadad84_0-1623086710654.png

It's properly calculating the created per month. However, my measure is not correctly picking up items closed from the new data source.

 

Here's my measure to get the closed items per month.

 

 

 

Count Closed Actions := 
CALCULATE(COUNTROWS('EQMS Appended'),
    'EQMS Appended'[Date Closed],
    USERELATIONSHIP('EQMS Appended'[Date Closed],'Date Table'[Date])
    )

 

 

 

1 ACCEPTED SOLUTION

Just to discard possible issues, is the date closed field in the appended table formatted as date type (it must be the same type as the date field in the Date Table)?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

4 REPLIES 4
datadad84
Advocate IV
Advocate IV

Thank you Paul. Sadly, my issue remains.

Just to discard possible issues, is the date closed field in the appended table formatted as date type (it must be the same type as the date field in the Date Table)?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

Thank you Paul! My appended query was using DateTime! Once I updated it to date, it was working properly! Thank you so much!

PaulDBrown
Super User II
Super User II

Try:
Count closed actions =
CALCULATE(COUNTROWS (EQMS Appended), USERELATIONSHIP(EQMS Appended [Date Closed],  Date Table [Date]))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Top Solution Authors
Top Kudoed Authors