Forum Discussion
NOT INVALUES is not working
- 1 year ago
Hi Fistachpl ,
Thank you for reaching out to Microsoft Fabric Community Forum.
here can calculate how many times each Sales Rep called another Sales Rep based on phone number here i have used TREATAS & LOOKUPVALUE function.
CallsToSalesReps :=
CALCULATE(
COUNTROWS(PhoneCalls),
TREATAS(VALUES(SalesRep[Phone]), PhoneCalls[RecipientNumber])
)2)
SalesRepName =
LOOKUPVALUE(
SalesRep[Name],
SalesRep[Phone], PhoneCalls[RecipientNumber]
)Regards,
Chaithanya.
Try
_callLength =
VAR SalesRepNumbers =
VALUES ( SalesReps[Phone] )
VAR Result =
CALCULATE (
SUMX ( PhoneLogs, PhoneLogs[CallLength] ),
NOT PhoneLogs[RecipientNo] IN SalesRepNumbers
)
RETURN
Result
It does not work, but I am not suprised as it is basically the same syntax I tried 😕
- johnt751 year ago
Super User
What columns from which tables do you have in the table visual ?
- Fistachpl1 year ago
Helper III
I have Name from table SalesReps and for those I want to calculate a measure.
- pravinW0071 year agoRegular Visitor
Can share your pbix file with sample expected output.
Thanks,
Pravin Wattamwar