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.
Hello Community - I'm confused as to why I am not seeing the results I expected.
I have a dim date table and a salesforce opportunity table. I have an active relationship between close date, and an inactive one with customer requested ship date. I want to sum up the opportunity value of ONLY the open opportunities, but based on the customer requested ship date (which has an inactive relationship with the date table). Per below.
I had thought that by using the date table columns (Month and Year for example) in a table, and then adding this measure, that I would get back results that matched the requested ship date months. Instead, all I am getting back are dates that match the same time frame as the closed date (the active relationship). See example below.
Doesn't the additon of the "userelationship" function overide this behavior? If I use the actual "requested ship date" column by itself, I get the correct results, but again, I thought I could just go ahead and use the date table and have the correct results returned since the formula accounts for inactive relationship.
Solved! Go to Solution.
I think the problem is that the FILTER argument is being calculated before the REMOVEFILTERS is applied, so the only rows which will be visible are the ones which match the date using the active relationship.
Try
Value of Open Opportunities =
CALCULATE (
[Sum of Tech Amount Converted],
USERELATIONSHIP ( Sf_Opportunity[Customer_Requested_Ship_Date__c], 'Dim_Date Table'[Date] ),
Sf_Opportunity[Status__c] = "Open"
)
I think the problem is that the FILTER argument is being calculated before the REMOVEFILTERS is applied, so the only rows which will be visible are the ones which match the date using the active relationship.
Try
Value of Open Opportunities =
CALCULATE (
[Sum of Tech Amount Converted],
USERELATIONSHIP ( Sf_Opportunity[Customer_Requested_Ship_Date__c], 'Dim_Date Table'[Date] ),
Sf_Opportunity[Status__c] = "Open"
)
@johnt75 Fantastic...that worked perfectly.
I might add for those that see this post that the formula I orginally used was created by ChatGPT 3.5. And even after telling it several times that I was not getting the correct results, and explaining the problem, it still was apparently not able to correct it.
@Anonymous , refer the formula here
Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970
@amitchandak Thanks Amit. Fortunately the solution was much simpler and solved by the other poster.
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 |
---|---|
123 | |
78 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |