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 August 31st. Request your voucher.
Hi everyone,
I have the following columns in Power BI:
I'm trying to create a measure where it can calculate Total Order Quantity by Month per Part Number.
I came up with this:
Sum amount = CALCULATE ( SUM ( 'full updated ALL PARTS (2)'[Order Quantity] ), DISTINCT ( 'Part Numbers'[Part Number]))
, however, I don't know how to filter the result by month.
Sorry this might look really obvious to some of you but I have very little knowledge with DAX so any helps and recommendations are all appreciated!
Thank you!!!
Solved! Go to Solution.
Hi @Anonymous,
Based on your requirement, what about creating the measure with the formula below?
Measure = CALCULATE ( SUM ( 'full updated ALL PARTS'[Order quantity] ), ALLEXCEPT ( 'full updated ALL PARTS', 'full updated ALL PARTS'[Month], 'Part Numbers'[Part number] ) )
If you still help, please share some data sample which could reproduce your scenario and your desired output so that we could help further on it.
Best Regards,
Cherry
So, there is no relationship between the two tables or does your first table also contain part number?
Hi sorry, I forgot to write it down (already fixed the description) but the 2 tables do link to each other by Part Number and Material Number columns.
Hi @Anonymous,
Based on your requirement, what about creating the measure with the formula below?
Measure = CALCULATE ( SUM ( 'full updated ALL PARTS'[Order quantity] ), ALLEXCEPT ( 'full updated ALL PARTS', 'full updated ALL PARTS'[Month], 'Part Numbers'[Part number] ) )
If you still help, please share some data sample which could reproduce your scenario and your desired output so that we could help further on it.
Best Regards,
Cherry
User | Count |
---|---|
81 | |
74 | |
42 | |
30 | |
28 |
User | Count |
---|---|
108 | |
96 | |
53 | |
48 | |
47 |