Forum Discussion
DAX Calculation to create a KPI
- Anonymous9 years ago
gbraunwoodbury,
Have you created relationship between Date Modified field and Date field?
Regards,
I understand the solution but it's not yet working for me.
Here's the second measure I created based on your instructions:
Contacts Updated = CALCULATE(DISTINCTCOUNT('Email Data'[FirstName, LastName]),USERELATIONSHIP('Date'[Date],'Email Data'[Date Modified]),'Email Data'[Updated]=TRUE)
PowerBI shows the error: "USERELATIONSHIP function can only use the two columns references participating in relationship." The query does appear to reference three columns.
Error shown in PowerBI
Here is a screenshot of the sample data
The only difference I see is that my{Updated} field is logical (true/false) as opposed to textual (yes/no)
gbraunwoodbury,
Have you created relationship between Date Modified field and Date field?
Regards,
- gbraunwoodbury9 years agoHelper I
Awesome -- I owe you one!