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
Hi all,
I have the following data table:
| Group | Code | Stock | Cost | Date |
| A | REJI3 | Apple | 21401 | 07/01/22 |
| A | FDJDA2 | Banana | 500 | 07/01/22 |
| B | EFAF3 | Shoes | 42594 | 14/01/22 |
| B | DSKOAJ | T-Shirt | 224 | 14/01/22 |
| B | DSJSIS | Trouser | 24121 | 14/01/22 |
| A | REJI3 | Apple | 53151 | 14/01/22 |
| A | FDJDA2 | Banana | 200 | 14/01/22 |
| C | SDAIDJA | Beer | 4214 | 14/01/22 |
| C | DSLA2 | Wine | 886 | 21/03/22 |
| C | DSJIJIJ5 | Rum | 454 | 21/03/22 |
| D | SOOO2 | Dog | 5332 | 08/06/22 |
I basically want a measure that would show me the lowest cost by group of product (A, B, C, D etc.), (maybe with the option of drilling down further into the actual stock too). This would then show the corresponding date where the SUM of Cost 'By Group' is lowest.
For a small example the below would return for Group A as the SUM Cost (21401+500) < (53151+200) making 07/01/22 the Date where Cost is lowest.
| Group | Code | Stock | Cost | Date |
| A | REJI3 | Apple | 21401 | 07/01/22 |
| A | FDJDA2 | Banana | 500 | 07/01/22 |
Solved! Go to Solution.
Hi @TotunG ,
Please follow these steps:
(1) Create a new measure
SUM = CALCULATE(SUM('Table'[Cost]),ALLEXCEPT('Table','Table'[Group],'Table'[Date]))
(2)Apply filtering
(3)Final output
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @TotunG ,
Please follow these steps:
(1) Create a new measure
SUM = CALCULATE(SUM('Table'[Cost]),ALLEXCEPT('Table','Table'[Group],'Table'[Date]))
(2)Apply filtering
(3)Final output
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |