Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
Thanks again for your reply - I figured out this issue was due to a data formatting error in the source data. Thank you again.
@Anonymous Try:
=CALCULATE(COUNT('Table'[Close Date]),ALL('Table'), USERELATIONSHIP('Calendar'[Date],'Table'[Close Date])).
@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.
@Anonymous Any chance you can post some sample data and maybe an image of your data model?
Thanks again for your reply - I figured out this issue was due to a data formatting error in the source data. Thank you again.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |