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
Good evening
I have searched for a solution but have unable to find one. I feel this should be a easy answer but being new to Power Bi I am unable to come up with a solution.
I have the below sample dataset
| Item | Warehouse | Reorder Type | Qty |
| ABC | 1 | Standard | 10 |
| ABC | 1 | Customer | 5 |
| ABC | 2 | Standard | 25 |
| DEF | 2 | Standard | 15 |
| GHI | 2 | Sales | 20 |
I need to return a datatable with a distinct list of Item and Warehouse codes along with columns summing the different reorder types. Example of the expected result below
| Item | Warehouse | Standard | Customer | Sales |
| ABC | 1 | 10 | 5 | 0 |
| ABC | 2 | 25 | 0 | 0 |
| DEF | 2 | 15 | 0 | 0 |
| GHI | 2 | 0 | 0 | 20 |
Solved! Go to Solution.
Hi @mm44
Under the Home tab in PBI Desktop click the transform data button. From here click on the Reorder tab so that it is hightlighted.
In the transform tab click pivot column and set the value to TypeQty. Click advanced options and set the aggregate value function to Don't Aggregate.
Your table will then appear as you want it.
*Update*
I forgot to mention, if you wish to replace the null values with 0.
Select all three columns, right click on one of them and click replace values. Value to find = null and replace with = 0
Hi @mm44
You can create a new table with this DAX expression:
Table 2 =
SUMMARIZE (
'Table',
'Table'[Item],
'Table'[Warehouse],
"Standard",
CALCULATE ( SUM ( 'Table'[Qty] ), 'Table'[Reorder Type] = "Standard" ) + 0,
"Customer",
CALCULATE ( SUM ( 'Table'[Qty] ), 'Table'[Reorder Type] = "Customer" ) + 0,
"Sales",
CALCULATE ( SUM ( 'Table'[Qty] ), 'Table'[Reorder Type] = "Sales" ) + 0
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn | Twitter | Blog | YouTube
Hi @mm44
You can create a new table with this DAX expression:
Table 2 =
SUMMARIZE (
'Table',
'Table'[Item],
'Table'[Warehouse],
"Standard",
CALCULATE ( SUM ( 'Table'[Qty] ), 'Table'[Reorder Type] = "Standard" ) + 0,
"Customer",
CALCULATE ( SUM ( 'Table'[Qty] ), 'Table'[Reorder Type] = "Customer" ) + 0,
"Sales",
CALCULATE ( SUM ( 'Table'[Qty] ), 'Table'[Reorder Type] = "Sales" ) + 0
)
Output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn | Twitter | Blog | YouTube
Hi @mm44
Under the Home tab in PBI Desktop click the transform data button. From here click on the Reorder tab so that it is hightlighted.
In the transform tab click pivot column and set the value to TypeQty. Click advanced options and set the aggregate value function to Don't Aggregate.
Your table will then appear as you want it.
*Update*
I forgot to mention, if you wish to replace the null values with 0.
Select all three columns, right click on one of them and click replace values. Value to find = null and replace with = 0
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 |
|---|---|
| 61 | |
| 54 | |
| 39 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 98 | |
| 84 | |
| 35 | |
| 30 | |
| 25 |