Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Help With DAX Query

Hi!

 

I would like some help with writing a DAX query.

 

I have 2 tables, one with customers details and the other with calls details that the customers made.

I am trying to find the customers who did not made any calls.

 

in SQL I found the answer with this:

 

select distinct
c.KeyCustomer
from DimCustomers as c
left join FactUsage as f on f.KeyCustomer=c.KeyCustomer
where f.CallId is null

  • Anonymous add following measure

     

    # Calls = COUNTROWS( FactUsage ) + 0

    Add table visual and put columns from customer table and on visual level filter put # Calls measaure with equal to 0

2 Replies

  • Anonymous add following measure

     

    # Calls = COUNTROWS( FactUsage ) + 0

    Add table visual and put columns from customer table and on visual level filter put # Calls measaure with equal to 0

    • Anonymous's avatar
      Anonymous
      Not applicable

      THANK YOU!

       

      it worked :)