Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, How are you. There is something that I am not doing well. I just want to do a sum as I do with SUMIF in Excel but in Power Bi.
I have a query where I want to add "Horas" according to the value of "Codigo Cliente". For example, in the attached image, in "Columna in the records of the "Client Code" TEC, the value 107855 should appear, but it gives an error or the same number appears in the record. It does not present the sum.
I have tried many formulas but none worked. Now I am using:
Solved! Go to Solution.
You can go with this
CodeTotal = VAR _Code = Hoja1[Codigo Cliente] RETURN CALCULATE(SUM([Horas]), FILTER(Hoja1, Hoja1[Employee] = _Code))
You can go with this
CodeTotal = VAR _Code = Hoja1[Codigo Cliente] RETURN CALCULATE(SUM([Horas]), FILTER(Hoja1, Hoja1[Employee] = _Code))
Excellent! Thank You very much
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
69 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |