Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Problem with some data in table or graphs

Hi all,

 

 

 

AS you can see yellow part of the imagen, In my dataset, I have data from Jnin the imagen I have some data for two clients each client have different data for example. Client 825 only have data from January 2017 to February 2018 but as you can see in the blue part when I add to the  table a measure to calculate something I don't know why It is showing more results that I expect.

The measure that I'm adding is just a calculate like this :

 

NS content_ok = 1-((CALCULATE(COUNT(dataset_kpis'[content_ok]);FILTER(dataset_kpis';dataset_kpis'[content_ok]= "NO"))/COUNT(dataset_kpis'[content_ok])))

 

Is a normal behaivor or maybe I'm doing something wrong?

 

Thanks in advance

 

 

 
  • Anonymous   i see what the problem is but i dont quite understand what is happening

    I changed the calculation slightly

    NS content_ok2 = divide(CALCULATE(count(test[content_ok]),'test'[content_ok]= "NO"),calculate(count(test[content_ok])))
     
    the problem is this 1- divide(CALCULATE(count(test[content_ok]),'test'[content_ok]= "NO"),calculate(count(test[content_ok])))
     
    the 1- brings back all the dates for that year.  

6 Replies

  • vanessafvg's avatar
    vanessafvg
    Community Champion

    Anonymous   its hard to understand what you are trying to do, what is your expected results, what are you trying to achieve?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Sorry, vanessafvg  that I'm trying to understand is the reason why in the blue part of the picture is showing all this data. As you can see in the yellow part, in my dataset, only have dates from January 2017 to February 2018 and in the blue part is showing the hole 2017 and 2018.

      • vanessafvg's avatar
        vanessafvg
        Community Champion

        Anonymous  it would be very hard to say without seeing how you are join the data, can you share this?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi any tip?

    • vanessafvg's avatar
      vanessafvg
      Community Champion

      Anonymous   i see what the problem is but i dont quite understand what is happening

      I changed the calculation slightly

      NS content_ok2 = divide(CALCULATE(count(test[content_ok]),'test'[content_ok]= "NO"),calculate(count(test[content_ok])))
       
      the problem is this 1- divide(CALCULATE(count(test[content_ok]),'test'[content_ok]= "NO"),calculate(count(test[content_ok])))
       
      the 1- brings back all the dates for that year.