Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
HI,
I am trying to create a measure to show the total quantity based on Location and Type.
| Location | Type | Quantity |
| Loc1 | 0 | 10 |
| Loc2 | 1 | 2 |
| Loc1 | 1 | 4 |
| Loc1 | 2 | 3 |
| Loc2 | 1 | 4 |
| Loc1 | 0 | 5 |
I have the following formula:
Solved! Go to Solution.
Hi,
But this is a measure, correct, not a calculated column? So you can simply use:
Rcvd =
CALCULATE ( SUM ( [Quantity] ), 'Item'[Type] = 0 )
which, when placed in e.g. a table visual with along with Location will produce:
| Location | Rcvd |
| Loc1 | 15 |
| Loc2 |
Regards
Hi,
But this is a measure, correct, not a calculated column? So you can simply use:
Rcvd =
CALCULATE ( SUM ( [Quantity] ), 'Item'[Type] = 0 )
which, when placed in e.g. a table visual with along with Location will produce:
| Location | Rcvd |
| Loc1 | 15 |
| Loc2 |
Regards
Huge facepalm moment for me. Of course that is the answer. I was breaking my head on this trying to base it off my SQL query. Thanks.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 7 | |
| 6 |