Forum Discussion

pawand23's avatar
pawand23
Frequent Visitor
7 years ago
Solved

Error in calculating duration

Hello Everyone,   I have a requirement where I have direct connection from SAP HANA  for Cube views. In one of the view, I have start date, end date, start time and end time. As this is direct quer...
  • v-yuta-msft's avatar
    7 years ago

    pawand23 ,

     

    This issue should be caused by power bi can't recognize the date format very well. Suppose you are connecting to sql server in direct query mode, you can change the date format firstly on sql server side like pattern below and thek if this issue persists after connection in power bi:

     

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.