Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello Team,
I need help creating a table to show the last balance for my products. My table looks like the below:
| Date | Description | Balance |
| 11/11/2022 | A | 30 |
| 11/11/2022 | B | 25 |
| 10/11/2022 | C | 25 |
| 01/11/2022 | D | 20 |
| 20/10/2022 | A | 25 |
| 20/10/2022 | B | 20 |
| 19/10/2022 | C | 30 |
| 17/10/2022 | D | 21 |
| 08/09/2022 | A | 19 |
| 08/09/2022 | B | 19 |
| 07/09/2022 | C | 20 |
| 07/09/2022 | D | 18 |
| 07/09/2022 | E | 22 |
I need an answer like below:
| Date | Description | Balance |
| 11/11/2022 | A | 30 |
| 11/11/2022 | B | 25 |
| 10/11/2022 | C | 25 |
| 01/11/2022 | D | 20 |
| 07/09/2022 | E | 22 |
I tried using the lastdate function but it is not working. Any idea?
Thank you.
Kind Regards,
Hasvine
Solved! Go to Solution.
@Anonymous Here is the solution, hope it helps.
You can refer to the below also.
Hi @Anonymous ,
Here are the steps you can follow:
1. Create calculated table.
Table 2 =
FILTER(
ALL('Table'),
'Table'[Date]=MAXX(FILTER(ALL('Table'),'Table'[Description]=EARLIER('Table'[Description])),[Date]))
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Anonymous Here is the solution, hope it helps.
You can refer to the below also.
Hi AbbasG,
I appreciate your help.
It works fine. However, if you have two transactions on the same date the table shows both transactions.
Example:
| Date | Description | Balance |
| 17/11/2022 | A | 25 |
| 17/11/2022 | A | 30 |
I need to show the latest. Is there a way?
Many thanks for your help.
Kind Regards,
Hasvine
@Anonymous per my experience, there should be some data point basis on which we can identify the latest transaction. for example time stamp or a combination of date and time instead of just date.
Does your data have something like that??
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |