I have two different tables whereby one table has Invoice value whereas other table has additional charges. Both these tables have document number (Invoice no) in common.I have used this document number for relationship purpose. Using the relationship I want landed cost for each Invoice no. However, using the relationship, the totals are being repeated. I am attaching the images for quick reference.
I have attached the Snapshot in a single image file a) Source Data b)Desired Result c) What I gotSnapshot of source data, desired result & What i got
In the last 3 columns instead of doing a sum do a max.
Related
I have been provided with two tables 1. sales table and 2.Items and it's characters. (The second table has two or more lines for one item if it has more than one characters)
I am trying to get the sum of sales value for the items based on its characters.
I have created a unique characters table and a unique material tables to link to other tables
In power pivot I am able to get the sum of sales by the material in U_Material, but if I include the Characters from U_Item and characters, then I am getting all the characters in the table and the sum, but actually it has only one characters (other characters are repeated with same value). what can i do to solve this.
if I don't include the materials or put them in filter then I get the overall sales value in the output but not as per the category.
Please let me know what I am doing wrong.
The problem is in your model. Your Fact table "Sales" are filtered only by U_Item any of your other tables don't have an impact on it; You should change the model to star/snowflake. Put "Sales" in the center, rest of your tables (Dimension) connect by relationship one to many (many on Sales side);
I have 3 different tables with the customer name and there are duplicates as well as unique customers in the 3 tables and I need to get the unique for all 3 to be used as the rows criteria in the pivot table.
I've been finding a way to do so but I cannot seem to figure it out.
The measure I tried is: Customers:=DISTINCT(UNION(VALUES('Test1 - Invoice'[CustomerID]),VALUES('Test2 - Invoice'[CustomerID]),VALUES('Test3 - Invoice'[CustomerID])))
But I get the error below:
Semantic Error: Too many arguments were passed to the VALUES function.
The maximum argument count for the function is 1.
I am quite new to DAX and have no idea how to do it. I believe it is because measures are only for values if i'm not mistaken
I read that to place on other fields of the pivot table, it has to be a calculated column although I do not see how it can be a calculated column as well.
One approach is to create a separate table to store the Customer Name dimension - then create relationships between that Customer dimension table and your 3 fact tables. This would be most effective at the Power Query stage, but can be done using DAX.
An alternative is to merge your 3 fact tables - again, this would be best done with Power Query, but is possible with DAX.
We have an issue with power BI where we cannot use a many-many relationship to do calculations.
End goal is Column E:
Initial Table #1:
Initial Table #2:
When I use the Average Price per Area of Initial Table #2 on the Initial Table #1[Item] as the Rows element, I will get a warning: Relationships between tables maybe needed. But the issue is Power Bi in Excel does not support a many-many relationship yet.
As can be seen, the Pivot Table is not displaying correctly as there is no item green. I have another database with more SKUs and it's all displaying #NUM there because it cannot reference the items despite having the same name.
Create a third table that contains unique items, i.e,
Table 3:
Column "Item"
Blue
Green
Red
...
Then connect both initial tables to it using field "Item".
Put "Item" from the third table on pivot rows, and your report should work (assuming your DAX formulas are correctly written).
Application - Shipping Log
Objective - Return all box sizes associated with a product code from a master table and determine the carton the product is shipped in. (Some codes have multiple boxes, the largest volume is always the one the product is shipped in)
I have one sheet named "ProductData" This contains a table that is to be populated from a query of our database.
ProductData-Table
On a separate sheet, I would like to use a cell to enter the product code and have next to this the shipping carton code and the volume auto populate. The issue is, for a given product code, there are multiple carton codes so a simple VLOOKUP will not work as it only returns the first instance in the table. I need to be able to return all instances in the table for the product code entered and then identify the max volume associated with the carton.
Sorting the lookup table by Product, then Volume descending will return the first product with the greatest volume.
I have two tables with the same data but in different rows, I want to sort them in front of each other. each duplicate row in front of its duplicate.
attached photo
In a new worksheet, copy the code data from one table and append to that a copy of the code data from the other. Apply Remove Duplicates to that column and sort ascending.
Now use that sheet to look up (VLOOKUP Description, Uom and Unit Price from one of your tables into three separate columns (say 2,3,4) and lookup up same fields from the other of your tables into a further three columns (say 5,6,7).
Wrap both formulae in IFERROR(....,"") to reduce noise.
I take it any numbering will be applied independently in a new sheet (ie No. is not required to be copied to there).
Incidentally you have a lot of unconventional hyphens (eg L-80 is never normally written other than as L80), m for OCTG as a unit of measure leads to many problems and with competent staff a structured catalogue could be advisable for a high value of stock and long-term storage.