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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

How to add GL Code=2101010 into sum(GL_PM_20[C/D]) ?

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Try like

calculate(Sum(GL_PM_20[C/D]),filter(GL_PM_20, GL_PM_20[GL Code] ="2101010"))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi Amit

 

My PBI file :-

https://www.dropbox.com/s/nzh6ghckoj9e8q6/GL_PMC_v003_.pbix?dl=0

When i try your expression , no error , but when i add STOCK AMT to my table ,  it display error.

 

Paulyeo11_0-1602737792211.png

 

Anonymous
Not applicable

Hi @Anonymous ,

 

What's the expected result you want? Only show the rows with GL Code=2101010?

 

Best Regards,

Jay

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors