Forum Discussion
Need help for dax dunction to count filter
Dear all,
I have a dax function like below. And I have a sclier to filter each person.
- Anonymous6 years ago
HI xiumi_hou ,
I think it should more be related to selectedvalue function, it will return blank when it returns multiple results, you can try to follow measure formula if it works:
1st outreach outbound = VAR BaseLineBaseDate = MIN ( Calls[date_start] ) RETURN CALCULATE ( SELECTEDVALUE ( Calls[Calls_cstm.channel_c], CONCATENATEX ( VALUES ( Calls[Calls_cstm.channel_c] ), [Calls_cstm.channel_c], "," ) ), FILTER ( Calls, Calls[date_start] = BaseLineBaseDate && Calls[direction] = "Outbound" ) )Regards,
Xiaoxin Sheng
7 Replies
- AnonymousNot applicable
HI xiumi_hou ,
I think it should more be related to selectedvalue function, it will return blank when it returns multiple results, you can try to follow measure formula if it works:
1st outreach outbound = VAR BaseLineBaseDate = MIN ( Calls[date_start] ) RETURN CALCULATE ( SELECTEDVALUE ( Calls[Calls_cstm.channel_c], CONCATENATEX ( VALUES ( Calls[Calls_cstm.channel_c] ), [Calls_cstm.channel_c], "," ) ), FILTER ( Calls, Calls[date_start] = BaseLineBaseDate && Calls[direction] = "Outbound" ) )Regards,
Xiaoxin Sheng
- xiumi_hou
Post Partisan
UP
- AnonymousNot applicable
Hi
I wonder if your issue is related to the "blank" record created by Power BI when you are relating two tables and the one or many values for the relevant field is not found on one of the tables.
example
table 1
Name_number Name 1 paul 2 john 3 Juan 4 Tomas 5 Ivan table 2
Product Count Name_number 10 1 2 3 6 10 6 8 Final report
Product count Name 10 paul 2 Juan 12 blank Is this your issue?
Thank you
Tomas
- xiumi_hou
Post Partisan
Anonymous Thanks for answering. Yes, I do can not found some records. But the records do exit in my database...