The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have two tables called Sales and Margin, both table has Party and Date column. now I want to filter total Sales and margin by date and by party. here is a sample data for your reference.
Margin Table
Sales Table
Result look like
I would create a date table and a dimension table called party that has party_id (primary key) and partyname as columns - then do necessary one to many relationships to both other tables.
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
183 | |
80 | |
62 | |
46 | |
38 |