Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
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
I need to calculate the growth or decrease based on the first and last record.
I have no idea. Bring data from one column based on another. When I say this, it is because I understand that I should bring the "QTY" column based on MIN (vdata) and MAX (vdata) and this I am not able to do with the little knowledge I have.
| name | vdata | qty |
| name a | 01/01/2017 | 10 |
| name a | 10/10/2017 | 15 |
| name a | 11/11/2017 | 20 |
| name b | 02/02/2017 | 10 |
| name b | 04/04/2017 | 14 |
| name b | 05/05/2017 | 8 |
| name c | 08/08/2017 | 10 |
| name c | 09/09/2017 | 32 |
| name c | 05/05/2017 | 42 |
----------------------------------
Example "Name A":
First reading: 01/01/2017
Value: 10
Last reading: 11/11/2017
Value: 20
-> Positive Result: 100%
----------------------------------
Example "Name B"
First reading: 02/02/2017
Value: 10
Last reading: 11/11/2017
Value: 8
-> Negative Result: (- 20%)
----------------------------------
In the past I simply calculated using MIN (qty) and MAX (qty). But sometimes between falls and uploads the data comes in incorrectly. GROWPERCENT = ((MAX(qty) - MIN(qty))/ MIN(qty)
I appreciate the help.
Solved! Go to Solution.
Hi,
Use this measure
Growth :=
CALCULATE (
VALUES ( Table1[qty] ),
FILTER ( Table1, Table1[vdata] = MAX ( Table1[vdata] ) )
)
/ CALCULATE (
VALUES ( Table1[qty] ),
FILTER ( Table1, Table1[vdata] = MIN ( Table1[vdata] ) )
)
- 1
Hi,
Use this measure
Growth :=
CALCULATE (
VALUES ( Table1[qty] ),
FILTER ( Table1, Table1[vdata] = MAX ( Table1[vdata] ) )
)
/ CALCULATE (
VALUES ( Table1[qty] ),
FILTER ( Table1, Table1[vdata] = MIN ( Table1[vdata] ) )
)
- 1
Hi @Zubair_Muhammad thanks a lot.
I just tested and it worked perfectly!!
When the person has the knowledge, everything is easier, right?
Thank you very much.
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 |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 59 | |
| 31 | |
| 25 | |
| 25 |