Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 30991

Calculated Column

$
0
0

Hi

 

This is my first post (and probably the first of quite a few).  My company is implementing Power BI and I am writing some reports but have hit a stumbling block.

 

I have linked to an SQL table (Value Ledger Entries Table from Navision 2009) and am in Query Editor in PowerBI.  I will give some background to the issue and hopefully you good people can help.

 

My table is sales data, but due to how we accrue for some customer rebates there is a column called "Cost Non-Invtbl".  This only has data in it when the column "Source Code" equals "PURCHASES".  When "Source Code" has "SALES" in it I can get all the data I need apart from the rebates.  The link from "Source Code" "PURCHASES" to "Source Code" "SALES" is via another column called "Item Ledger Entry No.".  However, I do not know the DAX formula to put in to get the "Cost Non-Invtbl" against "Source Code" "SALES".

 

The reason I need it is because the "PURCHASES" data does not have any of the  customer analysis attached.

 

I hope all that makes sense.  I am more than happy to provide some sample data if needed.

 

If I did this in Excel my formula would be =SUMIFS(Cost Non-Invtbl, Source Code, "PURCHASES", Item Ledger Entry No., Item Ledger Entry No. of the row)

 

Many thanks

Mark


Viewing all articles
Browse latest Browse all 30991

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>