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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
rohitjmd
Helper II
Helper II

calculated column based on not related column in other table

hello, 

 

could you please help creating calculated column amount in non related table as per below condition,

ProjectamountYearMonth
A2020191
B3020192
C4020193
D4520192
A2120191
A3420193
A2420192
C2320193
D3420192

 

ProjectYearMonthAmount
A20191 
B20192 
C20193 
D20192 
A20192 
A20193 
1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @rohitjmd 

 

You can aggregate the amount column directly and the results would meet your requirement:

02.PNG

Also, you can calculate the amount using below DAX:

Measure = CALCULATE(SUM('Table'[amount]),VALUES('Table'[Month]),VALUES('Table'[Project]))

03.PNG

Community Support Team _ Dina Ye
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

5 REPLIES 5
v-diye-msft
Community Support
Community Support

Hi @rohitjmd 

 

You can aggregate the amount column directly and the results would meet your requirement:

02.PNG

Also, you can calculate the amount using below DAX:

Measure = CALCULATE(SUM('Table'[amount]),VALUES('Table'[Month]),VALUES('Table'[Project]))

03.PNG

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

Hi @rohitjmd,

try the following measure:

 

08-07-_2020_23-49-47.jpg

 

Regards FrankAT

RichardJ
Responsive Resident
Responsive Resident

Hi @rohitjmd,

 

An option to provide the grouping and aggregation you would like would be to use the 'Group By' function found within the Transform tab of the Power Query Editor.

 

You could group by the Project Name, then aggregate by sum for the month.

 

This would add your new column with the consolidated amount

 

You may wish to duplicate your original table first so you have a grouped version in addition to the original non grouped version.

 

Group ByGroup By

 

Cheers,

Richard

Well, Could you sugggest how to do it through dax?

RichardJ
Responsive Resident
Responsive Resident

Hi @rohitjmd,

I won't be able to do that as the group by method is the way I would use to create the column.

Cheers,

Richard

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.