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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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