Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

add custom column to table

Hi all,

 

I have a very easy quesion.

 

Is it possible to add a new column which calculated with other 2 column ?

 

My table like as below.
Screenshot_2.png

 

I want to change it like that.
Screenshot_3.png

 

Finally i'm using Direct Query method, not import data. 😞 BTW if it is possible on import data let me know.

Any idea ? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 

With Power Bi, you will need at least create a column or a measure for the variance to displayed it on the report.

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
az38
Community Champion
Community Champion

Hi @Anonymous 

try to create a measure 

Measure = SUMX('Table';[KPI2]-[KPI1])

for import mode it's enough to create a column

Column = [KPI2]-[KPI1]

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Hi @az38 

Actually that's not what i want.

I don't want to add it like measure. If i create it like measure it going to show on row, i need to show it on columns.

Does it make sense to you ?

az38
Community Champion
Community Champion

@Anonymous 

You should be able to use Measure as a column for matrix visual

Anyway, if you use directquery you also can create a column with some limitations

Limitations in calculated columns: Calculated columns are limited to being intra-row, as in, they can only refer to values of other columns of the same table, without the use of any aggregate functions. Additionally, the DAX scalar functions, such as LEFT(), that are allowed, are limited to those functions that can be pushed to the underlying source. The functions vary depending upon the exact capabilities of the source. Functions that aren't supported aren't listed in autocomplete when authoring the DAX for a calculated column, and would result in an error if used.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about

 

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 i'm unable to use it.

Actually maybe i don't need to create new measure.
Some BI Tools makes it possible to create calculation on table. without creating new object on model.
For Ex:

Screenshot_4.pngScreenshot_5.png

I just want to be sure if it is possible on PBI to do something like that. I want to add variance of some KPI on table. 
I created a measure like you but it isn't working. Here is my pbix.

 

 

Anonymous
Not applicable

@Anonymous 

With Power Bi, you will need at least create a column or a measure for the variance to displayed it on the report.

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

az38
Community Champion
Community Champion

@Anonymous 

sorry, it was my bad, of course.

for you task you can use table Visual, not matrix


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.