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
Anonymous
Not applicable

Measure for DOES NOT EXIST

I need to write a measure that where EpicKey doesn't not exist in another table.

 

Epic table (Epickey, ProjectKey)
Issue table (IssueKey, EpicKey, ProjectKey)

 

The measure needs to give me a distinct count of ProjectKey where Epic.Epickey does not exist in Issue.Epickey

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think I solved it with EXCEPT.

Count of Projects = CALCULATE(
CALCULATE(
DISTINCTCOUNT(JiraEpic[ProjectKey]),
EXCEPT (
VALUES ( JiraEpic[EpicKey] ),
VALUES ( IssuesList[EpicKey] )
) -- Not in IssuesList
) +
CALCULATE(
DISTINCTCOUNT(IssuesList[ProjectKey])
)
)

 

View solution in original post

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

@Anonymous 

 

Any chance you can post sample data from both tables? (as a table if possible, to allow us to copy/paste into Excel)





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.






Anonymous
Not applicable

I think I solved it with EXCEPT.

Count of Projects = CALCULATE(
CALCULATE(
DISTINCTCOUNT(JiraEpic[ProjectKey]),
EXCEPT (
VALUES ( JiraEpic[EpicKey] ),
VALUES ( IssuesList[EpicKey] )
) -- Not in IssuesList
) +
CALCULATE(
DISTINCTCOUNT(IssuesList[ProjectKey])
)
)

 

TomMartens
Super User
Super User

Hey @Anonymous ,

 

please take the time to create a pbix that contains sample data, but still reflects your data model. Upload the pbix to onedrive or dropbox and share the link.

 

Please describe the expected result based on your sample data.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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