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
vamshikrishna20
Helper III
Helper III

M Query formula to sum and condition

Hi Team, 

 

Iam trying to get M query formula to write in the custom column and below is the logic .

 

I have two fields
1.Measurement unit which has KGS and LBS as Value

2.and weight column which has numerical value, 

now i want two fields as In KGS and IN LBS and in that i want to have its respective values . 

for this iam creating a column like sum of Weightcolumn where Measureunit = "IN KGS", 

So, please help me with writing custom column formula for above logic 

2 REPLIES 2
Anonymous
Not applicable

lbendlin
Super User
Super User

Please provide sample data in usable format (not as a picture) and show the expected outcome.

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.