Forum Discussion

NickolajJessen's avatar
NickolajJessen
Solution Sage
7 years ago
Solved

Help with stored SQL procedure in Power-query

Problem: An Amount is changing from "+" to "-" during my SQL-procedure.

I'm not sure if the problem is with BI or my SQL-query (probably the latter)

This only happens to this single record. All other records are fine.

 

NB.
Ordrenummer = Order number
Finanskonto = Financial Account

Beløb = Amount

Dato = Date

 

It's perfectly fine when looking it up in the database with a simple query.

But when loading it into BI, it changes....

 

 

This is the SQL procedure i use

 

2 Replies

  • This does not look like a Power BI issue. The data in Power BI matches the screen shot from your stored procedure. So you need to figure out why the output of you stored proc and your query are different. It could be due to the FULL JOIN. I don't think this looks right. I would guess that maybe this should be an inner or left join, but I don't know anything about your data so I could be mistaken.