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.
Hi,
I am trying find the sum of a column with multiple filter values.
Screenshot below - I would like to calculate the total sum of hours from the "Hours" column if the INV column is value 21, 23, 27 ,28 etc.
I have tried the following DAX
Solved! Go to Solution.
Hi @JamesGordon
try
Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] IN {21,29,27}))
or
Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21 || Sheet[INV] = 29 || Sheet[INV] = 27))
Hi @JamesGordon
try
Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] IN {21,29,27}))
or
Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21 || Sheet[INV] = 29 || Sheet[INV] = 27))
HI @az38
Productive Value = CALCULATE(SUM(Sheet[Hours]), FILTER(Sheet, Sheet[INV] = 21 || Sheet[INV] = 29 || Sheet[INV] = 27))
This one worked thank you!!
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |