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.
Hi,
Please excuse if the question seems trivial, I am a newbie and have tried various solutions which havent worked. I am trying to summarize a table 'Budget' which looks like this:
Region | Power BI | USD | Type | Cat. |
xx | Non-Motor | 12500 | Actual | CAPEX |
xx | Non-Motor | 510.51 | Actual | OPEX |
xx | Non-Motor | 2473.671 | Actual | OPEX |
xx | Non-Motor | 757.4359 | Actual | OPEX |
yy | Non-Motor | 680.5167 | Actual | OPEX |
yy | Non-Motor | 1118.632 | Actual | CAPEX |
yy | Motor | 6992 | Actual | CAPEX |
yy | Motor | 4736.987 | Actual | CAPEX |
yy | Motor | 757.4359 | Actual | OPEX |
yy | Motor | 1740 | Actual | CAPEX |
yy | Motor | 2967.308 | Actual | CAPEX |
xx | Motor | 2294.103 | Actual | CAPEX |
xx | Motor | 3191.795 | Actual | CAPEX |
to look like this:
Region | Power BI | Actual | Cat. |
xx | Non-Motor | 12500 | CAPEX |
xx | Non-Motor | 3741.616 | OPEX |
yy | Non-Motor | 680.5167 | OPEX |
yy | Non-Motor | 1118.632 | CAPEX |
yy | Motor | 16436.29 | CAPEX |
yy | Motor | 757.4359 | OPEX |
xx | Motor | 2294.103 | CAPEX |
I don't actually need the column 'Type' and instead replace the USD column name with 'Actual'
Solved! Go to Solution.
@adityah , a sum(Table[USD]) should work in table visual with all other columns
If you need a data table,
Summarize(Table, Table[Region], Table[Power BI], Table[Cat], "Actual", SUm(table[USD]))
Learn Power BI: Calculatetable, Summarize, Groupby, SummarizeColumns, Except, Distinct, Generateseries, Generate, Crossjoin
https://youtu.be/cN8AO3_vmlY?t=22350
hi @adityah
try to add a calculated table like:
Table =
ADDCOLUMNS(
SUMMARIZE(
budget,
budget[Region],
budget[Power BI],
budget[Cat.]
),
"Actual",
CALCULATE(SUM(budget[USD]))
)
it worked like:
hi @adityah
try to add a calculated table like:
Table =
ADDCOLUMNS(
SUMMARIZE(
budget,
budget[Region],
budget[Power BI],
budget[Cat.]
),
"Actual",
CALCULATE(SUM(budget[USD]))
)
it worked like:
@adityah , a sum(Table[USD]) should work in table visual with all other columns
If you need a data table,
Summarize(Table, Table[Region], Table[Power BI], Table[Cat], "Actual", SUm(table[USD]))
Learn Power BI: Calculatetable, Summarize, Groupby, SummarizeColumns, Except, Distinct, Generateseries, Generate, Crossjoin
https://youtu.be/cN8AO3_vmlY?t=22350
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |