Forum Discussion

IntaBruce's avatar
IntaBruce
Resolver I
2 years ago

One slicer, two date fields

There seem to be a couple of posts similar to this question but not one that fits my situation exactly.

I am tracking receipts and dispatches of items.  The receipt date is recorded in the Items table and the dispatch date is recorded in the dispatch table.  Items relate to a Case and case details are held in a third table,

 

Items_Table {item_id}, {Receipt_date}, {case_id}, {dispatch_id}

Dispatch_Table {dispatch_id}, {Dispatch_date}, {case_id}

Case_Table {case_id}, {case_details}

 

Cases can have many Items and many Dispatches

Dispatches can have many Items but relate to just one case

 

I want a date slicer that will filter a Case table to show all cases that have an associated item either received or dispatched.  Is this possible?

2 Replies

  • IntaBruce, If the case table is capable of serving as the master for the other two tables, proceed with that approach. Otherwise, generate a table containing only the shared case IDs. Integrate a date table and join these two Dispatch_Table and Items_Table tables.

    Following this, you can create visuals incorporating case IDs and dates from the master tables, utilizing measures from both the Dispatch_Table and Items_Table.

     

    Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM
    https://medium.com/@amitchandak/power-bi-when-i-asked-you-to-create-common-tables-a-quick-dax-solution-8e3eccb41bda

  • v-zhangti's avatar
    v-zhangti
    Community Support

    Hi, IntaBruce 

     

    Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures or Excel. I look forward to your response.

     

    Best Regards,

    Community Support Team _Charlotte

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.