Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Time table issue - (for stacked bar chart)

Thank you for your time, in advance!   I am using DirectQuery for SQL. Data cannot be imported because the ddbb is too huge. In that main/fact table I have a column "date"-dd/MM/yyyy and a column "...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Hi v-danhe-msft!

    First of all, thank you very much for your answer. 

     

    I've figured out that the relationship between the fact table and the time table was always wrong and it didn't filter properly, and I couldn't aply only your solution because I needed it to be dinamic for all hours. But it helped me to see time formats. 


    It was all wrong because my sql time column had nanoseconds. So I just taken out the nanosecond in my sql and voila!! the data conected properly. 

     

    The purpose was this graphic. Now I have the operations by language and hours of the day. The operations made between 17:00:00 and 17:59:59 are stacked up by language in one bar, and so on...