Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I'm trying to make a reconciliation report. When pallets of material are produced, they are assigned a pallet number for that material. Our machine sometimes miscounts and will make 10 pallets of material and the last pallet number will be 12 (or 25 or whatever). It doesn't do this every time, so there are many examples of 9 pallets with the highest number being 9.
The end goal is to be able to tell what percentage of the time the machine counts correctly/incorrectly. I've underlined the parts of the table where there is a counting mistake.
Sample Data: Run Reconcile
Data:
run_no pallet
| A | 1 | |
| A | 2 | |
| A | 3 | |
| A | 4 | |
| A | 5 | |
| A | 6 | |
| A | 7 | |
| A | 8 | |
| A | 9 | |
| A | 10 | |
| A | 11 | |
| A | 12 | |
| A | 13 | |
| A | 14 | |
| A | 15 | |
| B | 1 | |
| B | 2 | |
| B | 3 | |
| B | 4 | |
| B | 5 | |
| B | 6 | |
| B | 7 | |
| B | 8 | |
| B | 9 | |
| B | 10 | |
| B | 11 | |
| B | 12 | |
| B | 13 | |
| B | 14 | |
| B | 15 | |
| B | 16 | |
| B | 18 | |
| B | 19 | |
| B | 20 | |
| B | 21 | |
| B | 22 | |
| B | 23 | |
| B | 24 | |
| B | 25 | |
| B | 26 | |
| B | 27 | |
| C | 1 | |
| C | 2 | |
| C | 3 | |
| C | 4 | |
| C | 5 | |
| C | 6 | |
| C | 7 | |
| C | 8 | |
| C | 9 | |
| C | 10 | |
| C | 11 | |
| C | 12 | |
| D | 1 | |
| D | 2 | |
| D | 3 | |
| D | 4 | |
| D | 5 | |
| D | 6 | |
| D | 9 | |
| D | 10 | |
| D | 11 | |
| D | 12 | |
| D | 13 | |
| D | 14 | |
| D | 15 | |
| D | 18 | |
| E | 1 | |
| E | 2 | |
| E | 3 | |
| E | 4 | |
| E | 5 | |
| E | 6 | |
| E | 7 | |
| E | 8 | |
| E | 9 | |
| F | 1 | |
| G | 1 | |
| G | 2 | |
| G | 3 | |
| G | 4 | |
| G | 5 | |
| G | 6 | |
| G | 7 | |
| G | 8 | |
| G | 9 | |
| G | 10 | |
| G | 11 | |
| G | 12 | |
| G | 13 | |
| G | 14 | |
| G | 15 | |
| G | 16 | |
| G | 17 | |
| G | 18 | |
| G | 19 | |
| G | 20 | |
| G | 21 | |
| G | 22 | |
| G | 23 | |
| G | 24 | |
| G | 25 | |
| G | 26 | |
| G | 27 | |
| H | 1 | |
| H | 2 | |
| H | 3 | |
| H | 4 | |
| H | 5 | |
| H | 6 | |
| H | 7 | |
| H | 8 | |
| H | 9 | |
| H | 10 | |
| H | 11 | |
| H | 12 | |
| H | 13 | |
| H | 14 | |
| H | 15 | |
| H | 16 | |
| H | 17 | |
| H | 18 | |
| H | 19 | |
| H | 20 | |
| H | 21 | |
| H | 22 | |
| H | 23 | |
| H | 24 | |
| H | 25 |
Output:
| run_no | max_pallet | pallet_count | count-good | ||||||
| A | 15 | 15 | yes | Incorrect percentage | |||||
| B | 27 | 26 | no | 25% | |||||
| C | 12 | 12 | yes | ||||||
| D | 18 | 14 | no | ||||||
| E | 9 | 9 | yes | ||||||
| F | 1 | 1 | yes | ||||||
| G | 27 | 27 | yes | ||||||
| H | 25 | 25 | yes |
Solved! Go to Solution.
For your reference.
Step 1: I make a summarize table 'Outpot Table' and add 3 columns.
Output Table = SUMMARIZE('DATA','DATA'[run_no])
max_pallet = CALCULATE(MAX('DATA'[pallet]),ALLEXCEPT('Output Table','Output Table'[run_no]))
pallet_count = CALCULATE(COUNT(DATA[run_no]),ALLEXCEPT('Output Table','Output Table'[run_no]))
count-good = IF([max_pallet]=[pallet_count],"yes","no")
Step 2: I make a measure.
Incorrect percentage = DIVIDE(COUNTX(FILTER('Output Table','Output Table'[count-good]="no"),'Output Table'[count-good]),COUNT('Output Table'[count-good]))
Step 3: I make a 'Table' visual and a 'Card' visual.
For your reference.
Step 1: I make a summarize table 'Outpot Table' and add 3 columns.
Output Table = SUMMARIZE('DATA','DATA'[run_no])
max_pallet = CALCULATE(MAX('DATA'[pallet]),ALLEXCEPT('Output Table','Output Table'[run_no]))
pallet_count = CALCULATE(COUNT(DATA[run_no]),ALLEXCEPT('Output Table','Output Table'[run_no]))
count-good = IF([max_pallet]=[pallet_count],"yes","no")
Step 2: I make a measure.
Incorrect percentage = DIVIDE(COUNTX(FILTER('Output Table','Output Table'[count-good]="no"),'Output Table'[count-good]),COUNT('Output Table'[count-good]))
Step 3: I make a 'Table' visual and a 'Card' visual.
Thanks! That works great. I really need to work on my ability to make summary tables.
I forgot to explain.
Please add a relationship below.
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 |
|---|---|
| 50 | |
| 40 | |
| 37 | |
| 14 | |
| 14 |
| User | Count |
|---|---|
| 85 | |
| 69 | |
| 37 | |
| 28 | |
| 27 |