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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
georgehtan
New Member

filtering to only happen on the SUM

Hi All, does anyone know if its possible to filter an aggregation expression in a group by? if so how would i go about doing that? something like group by column1, column2, column3,filter column 4(starts with " ") sum column5, count column6 Thank you

1 ACCEPTED SOLUTION
ray_ux
Memorable Member
Memorable Member

@georgehtan Sounds like you need a calculation function () for the measure?
here a example,  summarize( Table, Column1, Column2, Column3, "Sum", calculate( sum(), left(column4) <> " ")) // it should be something like that.

View solution in original post

1 REPLY 1
ray_ux
Memorable Member
Memorable Member

@georgehtan Sounds like you need a calculation function () for the measure?
here a example,  summarize( Table, Column1, Column2, Column3, "Sum", calculate( sum(), left(column4) <> " ")) // it should be something like that.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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