Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello people,
I am new to Power BI. I need a new column that subtracts two rows of a table.
I have this table, and I need show the anual growth of each database, so I want to generate a column that subtracts the USED_GB of the current year less those of the previous year of each database.
The idea is to generate this new column in DAX. How can I do that?
Thanks.
Hi Ajendra,
This is the desire output, but I would like not view the rows with PREVIOUS_YEAR with empty values:
Thanks.
hi @Anonymous
try to add a calculated column like:
column =
VAR _pre =
MAXX(
FILTER(
data,
data[DATABASE]=EARLIER(data[DATABASE])
&&YEAR(data[DATE])=YEAR(EARLIER(data[DATE]))-1
),
data[USED_GB]
)
RETURN
[USED_GB] - _pre
it worked like:
Hi FreemanZ, thanks for your help.
I tried this, but my PowerBi showed this error (My table name is
Regards.
Hello,
Please provide some dummy data alongwith the desire output. Thanks!!
Ajendra!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |