Forum Discussion
limonSerga
10 months agoRegular Visitor
Show values on table based on columns from another table
Hello Im having some issues generating a table, hopefully I can get some guidance on how to solve this issue. I would be greatly appreciate it. Im trying to get the values from "Table B" to...
- 9 months ago
This is an efficient solution and works when you can only choose 1 date. If there is a need to select multiple dates then try:
Parts Planned =
CALCULATE(
SUM('TableB'[Parts Planned]),
TREATAS(
VALUES('TableA'[Date]),
'TableB'[Date]
),
TREATAS(
VALUES('TableA'[part number]),
'TableB'[part number]
)
)
Hans-Georg_Puls
Super User
9 months agoHi limonSerga ,
there might be two reason for you result:
- Could it be that an implicit summarrization is defined for "Parts Planned". Please check if
- There is a sum sign in front of the your "Parts Planned" column in Data view
- You can deactivate that summarization by selecting the column and choose Summarization = "Don't summarize" from "Column tools" menu
- In Build view sum is activated as summarization for "Parts Planned"
- You can deactivate the summarization directly in the Data window changing the Summmarization entry
- There is a sum sign in front of the your "Parts Planned" column in Data view
- You mentioned "However, this is what I get when I try to do sumx calculations". Where do you do a sumx calculation? I wouldn't expect that you need any sum or sumx calculation to get what you want.
Hope that helps.