This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Solved! Go to Solution.
Hi @Anonymous ,
You did not provide sample data, but I did the test based on the data in your previous posts.
Please refer to the dax code for measure:
Measure =
CALCULATE (
COUNT ( 'Campaign Responses'[Campaign Name] ),
FILTER (
'Campaign Responses',
YEARFRAC (MAX(Opportunities[Created On]), 'Campaign Responses'[Date] ) >= 0
&& YEARFRAC ( MAX(Opportunities[Created On]), 'Campaign Responses'[Date] ) <= 1
)
,USERELATIONSHIP('Campaign Responses'[Contact Name],Opportunities[Primary Contact Name])
)
And you should create an inactive relationship between 'Campaign Responses' and 'Opportunities' for USERELATIONSHIP function :
For more details, please refer to pbix file:https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EfE0_V2UdL1It...
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Anonymous ,
You did not provide sample data, but I did the test based on the data in your previous posts.
Please refer to the dax code for measure:
Measure =
CALCULATE (
COUNT ( 'Campaign Responses'[Campaign Name] ),
FILTER (
'Campaign Responses',
YEARFRAC (MAX(Opportunities[Created On]), 'Campaign Responses'[Date] ) >= 0
&& YEARFRAC ( MAX(Opportunities[Created On]), 'Campaign Responses'[Date] ) <= 1
)
,USERELATIONSHIP('Campaign Responses'[Contact Name],Opportunities[Primary Contact Name])
)
And you should create an inactive relationship between 'Campaign Responses' and 'Opportunities' for USERELATIONSHIP function :
For more details, please refer to pbix file:https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EfE0_V2UdL1It...
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Wow - Thank you for the response. This works!
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 26 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 22 | |
| 19 | |
| 18 |