- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem with Inactive Relationship
Hello, I am working with records/rows that have two different dates, open date and close date. I want to show the counts of open and closed dates by month on a single table. Therefore, I created relationships with the open and closed dates to a date table. The open date has an active relationship with the date table and the closed date has an inactive relationship with the date table. The open date counts are displayed by month as expected, using the month from the date table in the matrix column and the formula =COUNT('Table'[Open Date]). However, the closed count is not displayed by month and instead the counts appear as having a blank month. The formula for the closed date is:
=CALCULATE(COUNT('Table'[Close Date]),USERELATIONSHIP('Calendar'[Date],'Table[Close Date])).
The resulting table is:
The closed count is not linked to a month on the date table when the inactive relationship is called with USERELATIONSHIP. The closed dates occur throughout January through April and should appear under those columns instead of the blank month column.
Thanks for your assistance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks again for your reply - I figured out this issue was due to a data formatting error in the source data. Thank you again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mstone3 Try:
=CALCULATE(COUNT('Table'[Close Date]),ALL('Table'), USERELATIONSHIP('Calendar'[Date],'Table'[Close Date])).
Follow on LinkedIn
@ 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!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Greg_Deckler thanks very much for this suggestion. I tried it and got the result below. It appears to have taken the total closed count and added it to each month.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mstone3 Any chance you can post some sample data and maybe an image of your data model?
Follow on LinkedIn
@ 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!: Power BI Cookbook Third Edition (Color)
DAX is easy, CALCULATE makes DAX hard...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks again for your reply - I figured out this issue was due to a data formatting error in the source data. Thank you again.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-15-2024 03:06 PM | |||
09-13-2024 05:28 AM | |||
08-15-2024 01:57 PM | |||
08-01-2024 06:32 PM | |||
08-15-2024 10:13 AM |
User | Count |
---|---|
114 | |
92 | |
84 | |
54 | |
46 |