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

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.

Reply
Anonymous
Not applicable

Add a calculated column in a report

Hello,

 

Power BI noob here, with familiarity with relational databases.

 

I have a Table style report that lists the beginning balance and YTD activity for specific accounts.  I want to add a column at the end that is the sum of the two dollar columns.  I have figured out how to use Filtering to get the accounts and just the current year's activity in the report, but don't see how to calculate a sum.

 

Image3.jpg

Thank you in advance for your help!

 

 

Mike Grammas

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Why don't you use quick measure to sum these two fields.?

 and then include this new measure at the last of your table.

 

Capture 44.PNG

 

Or else you can use this calculated col:

 

Column=Calculate(sum(table[beginbal])+sum(table[YTD amt]))

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Just create a measure as below:

Measure = [beginbal] + [YTD amt]

then drag it to table visual.

Result:

12.JPG

 

Best Regards,

Lin

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

Hi @Anonymous ,

 

Why don't you use quick measure to sum these two fields.?

 and then include this new measure at the last of your table.

 

Capture 44.PNG

 

Or else you can use this calculated col:

 

Column=Calculate(sum(table[beginbal])+sum(table[YTD amt]))
Anonymous
Not applicable

Thank you, tejaswidmello.  I learned something new today.  Since I didn't know what I was doing, the measure got placed in a totally unrelated table, and I don't seem to be able to drag it to where I want it.  Is that possible, or do I need to re-create it?

 

Mike

Anonymous
Not applicable

Hi @Anonymous ,

 

if there is no relationship between the tables then it will throw an error.  Good to have the measure in your own table.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors