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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I would like to seek some helps for the DAX to summarize the "QTY" by "ID". However, I would like to Filter the "Status" to Ordered only before summarize.
| ID | QTY | Status |
| 1 | 7 | Ordered |
| 1 | 4 | Cancelled |
| 2 | 2 | Ordered |
| 2 | 8 | Cancelled |
| 3 | 4 | Ordered |
Desired outcome:
| ID | QTY |
| 1 | 7 |
| 2 | 2 |
| 3 | 4 |
I am tyring with the DAX but still fail. Appreciated if you have any idea. Thanks
_Table =
ADDCOLUMNS(
SUMMARIZE(FILTER('Table','Table'[Status]="Ordered"),'Table'[ID]),
"SUM", CALCULATE(SUM('Table'[QTY])))
Solved! Go to Solution.
Try
_Table =
SUMMARIZE(FILTER('Table','Table'[Status]="Ordered"),'Table'[ID],
"SUM", CALCULATE(SUM('Table'[QTY])))
Proud to be a Super User!
Try
_Table =
SUMMARIZE(FILTER('Table','Table'[Status]="Ordered"),'Table'[ID],
"SUM", CALCULATE(SUM('Table'[QTY])))
Proud to be a Super User!
@FarhanAhmed you solution works very fine. May I know how it is possible that your solution can still work without ADDCOLUMN?
Great thanks anyways
Hi,
Please try the below for creating a new table.
_Table =
VAR filteredtable =
FILTER ( 'Table', 'Table'[Status] = "Ordered" )
VAR newtable =
SUMMARIZE ( filteredtable, 'Table'[ID], 'Table'[QTY] )
RETURN
newtable
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!