Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
What would be the correct measure or custom column to get the correct TOTAL BOXES SOLD in reference to the SOLD BY.
For example, if SOLD BY= PIECE, then TOTAL BOXES SOLD=SOLD QTY/PIECES PER BOX, otherwise TOTAL BOXES SOLD.
Thanks.
Solved! Go to Solution.
@Oros ,
I am not sure whether I have understand your requirement right but this what I have come up with in a calculated column,
New Column = IF(TableName[SOLD BY] = "PIECE",TableName[SOLD QTY (BOX OR PIECE)]/TableName[PIECES PER BOX],TableName[TOTAL BOXES SOLD])
Thanks,
Arul
Hi @Oros
You can create a calculated column with the following formula
TOTAL BOXES SOLD = if(SOLD BY= "PIECE", SOLD QTY/PIECES PER BOX,SOLD QTY)
Did it work ? 👌 Mark it as a solution to help spreading knowledge 👉 A kudos would be appreciated
Can you make sure that your columns are decimal? just to check if there is a text value " in one of your rows instead of numeric values
@Oros ,
I am not sure whether I have understand your requirement right but this what I have come up with in a calculated column,
New Column = IF(TableName[SOLD BY] = "PIECE",TableName[SOLD QTY (BOX OR PIECE)]/TableName[PIECES PER BOX],TableName[TOTAL BOXES SOLD])
Thanks,
Arul
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 52 | |
| 47 | |
| 41 | |
| 38 |