Forum Discussion

limonSerga's avatar
limonSerga
Regular Visitor
10 months ago
Solved

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...
  • Smitho's avatar
    Smitho
    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]
    )
    )