Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
@Hasvine2022 Here is the solution, hope it helps.
You can refer to the below also.
Hi @Hasvine2022 ,
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
@Hasvine2022 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
@Hasvine2022 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??
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |