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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
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.