Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi I am using power query to manipulate some data. I have a "Quarter" column and a "Total Amount" column. I want to get the sum of the "Total Amount" column if the "Quarter" column is equal to a criterion. For example, if the value in "Quarter" is Q1-2017, and there are 15 values in the "Total Amount" column matched to Q1-2017, I want to sum only those values in Total Amount.
Right now I am using the following formula in power query:
if [Quarter] = "Q2-2017" then List.sum(#"Changed Type"[Total Amount]) else null
This formula, however, is giving the total sum of all quarters regardless of the conditional pointing to only Q2-2017. Please advise! Thank you!
Solved! Go to Solution.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsRegards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you! This is exactly what I needed.
Hi @andash
it doesnt look like a good idea to calculate this in power query.
i could advice you to use an easy DAX-statement measure
Measure =
CALCULATE(
SUM('Table'[Total Amount]);
FILTER(ALL('Table');'Table'[Quarter] = "Q2-2017")
)do not hesitate to give a kudo to useful posts and mark solutions as solution
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |