Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hi everyone first time poster here, new to PowerBI, hoping someone can give me some pointers.
I have two tables in my data model
Right now I have a link between the "'Case'[CreatedDate]" field and the "'Date'[Date]" Field.
I have three Elelements on my Screen:
As you can probably tell I am looking for one chart to display the number of new cases for the time period selected by the slicer and the second chart to display the number if closed cases in that same time period, both broken down by the case owners. As you can also probably tell I get the same values in each table as I am pulling and linking the exact same values.
Is there a proper method to doing this? I am having the same issue in several places but this is a small example. I am trying to avoid having to pull in my entire dataset twice just to have one dataset for closed and one for new when they are referencing the same source. Any tips are appreciated.
Thanks,
edited: Typos
Solved! Go to Solution.
Read my article here, then post back any questions. https://exceleratorbi.com.au/multiple-relationships-between-tables-in-dax/
Thanks Matt, worked perfectly. For anyone wondering for future reference. Read Matts article it was simple and explaine dthis perfectly. I ended up with two measures:
Count of Created Cases
Count New Cases =
CALCULATE(COUNT('Case'[CaseNum]), USERELATIONSHIP(Dates[Date], 'Case'[CaseCreatedDate])
)
Count of Closed Cases
Count Closed Cases =
CALCULATE(COUNT('Case'[CaseNum]), USERELATIONSHIP(Dates[Date], 'Case'[CaseClosedDate])
)
I placed each of the measures into the values section of thier respective bar charts and it works great.
Read my article here, then post back any questions. https://exceleratorbi.com.au/multiple-relationships-between-tables-in-dax/
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
163 | |
110 | |
61 | |
51 | |
40 |