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 All,
I am looking to reassign a value based on specific conditions, here is my table below...
Name | Amount | Delivery Day |
A | 1 | Blank |
A | 2 | Day 1 |
A | 1 | Day 1 |
A | 5 | Day 2 |
B | 4 | Day5 |
B | 5 | Blank |
B | 12 | Day2 |
C | 7 | Day 3 |
C | 8 | Day 1 |
C | 17 | Day5 |
for example I would like the Delivery Day to be reassigned to be the Delivery Date that is over 50% of the total amount (solution can't be max) and here is what I would therefore expect to see...
Name | Amount | Delivery Date |
A | 6 | Day 2 |
B | 15 | Day 2 |
C | 24 | Day 5 |
If this solution was a calculated column that would be great! 😊
Many Thanks in advance for your help!
Taylor
Solved! Go to Solution.
hi @Ttaylor9870
try to plot a table visual with Name column and two measures like:
AmountSum = SUM(TableName[Amount])
MaxDeliveryDate =
MINX(
FILTER(
TableName,
TableName[Amount]=MAX(TableName[Amount])
),
TableName[Delivery Day]
)
it worked like:
Hi @FreemanZ,
How would this then look if you were to change it to No of rows opposed to Amount?
Name | Amount | Delivery Day |
A | 1 | Blank |
A | 2 | Day 1 |
A | 1 | Day 1 |
A | 5 | Day 2 |
B | 4 | Day5 |
B | 5 | Blank |
B | 8 | Day 2 |
B | 12 | Day2 |
C | 7 | Day 3 |
C | 8 | Day 1 |
C | 17 | Day5 |
C | 1 | Day 1 |
Company | Amount | Delivery Day |
A | 9 | Day 1 |
B | 29 | Day 2 |
C | 33 | Day 1 |
Hi @FreemanZ ,
There was no calculated columns or measures to create the columns that's they way they naturally sit.
I'd like the amounts added up and then whatever Delivery day had more than 50% of the total then assign delivery date to that.
Apologies! My bad I've edited the post and forgot to edit my expected table here is it fixed...
My Table...
Name | Amount | Delivery Day |
A | 1 | Blank |
A | 2 | Day 1 |
A | 1 | Day 1 |
A | 5 | Day 2 |
B | 4 | Day5 |
B | 5 | Blank |
B | 12 | Day2 |
C | 7 | Day 3 |
C | 8 | Day 1 |
C | 17 | Day5 |
Expected result...
Name | Amount | Delivery Date |
A | 9 | Day 2 |
B | 21 | Day 2 |
C | 32 | Day 5 |
hi @Ttaylor9870
try to plot a table visual with Name column and two measures like:
AmountSum = SUM(TableName[Amount])
MaxDeliveryDate =
MINX(
FILTER(
TableName,
TableName[Amount]=MAX(TableName[Amount])
),
TableName[Delivery Day]
)
it worked like:
Hi @FreemanZ,
How would this then look if you were to change it to No of rows opposed to Amount?
Name | Amount | Delivery Day |
A | 1 | Blank |
A | 2 | Day 1 |
A | 1 | Day 1 |
A | 5 | Day 2 |
B | 4 | Day5 |
B | 5 | Blank |
B | 8 | Day 2 |
B | 12 | Day2 |
C | 7 | Day 3 |
C | 8 | Day 1 |
C | 17 | Day5 |
C | 1 | Day 1 |
Company | Amount | Delivery Day |
A | 9 | Day 1 |
B | 29 | Day 2 |
C | 33 | Day 1 |
Hi @FreemanZ ,
No of Delivery Day rows, for example in the table above Compnay A had 2 Delivery Day 1 so make a new column that then assigns Company A to Delivery day 1.
Many Thanks for your help! 😊
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
11 | |
11 | |
8 | |
8 | |
8 |