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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MartinBT
Frequent Visitor

sumx filter

Hi PowerBI users, 

 

Im fairly new at PowerBI so I hope someone can help out abit. 

 

I have a dataset that contains the following columns: 

 

Hours

Issue_key

 

 Screenshot_2.png

 

I want to create a new calculated column that sums up all hours that is not logged on a issue_key that starts with IW 

In the screenshot the SUM would be 0,25 

 

I figure I need to use the SUMX Filter, but I am unsure how to structure it. 

 

Thanks

1 ACCEPTED SOLUTION
himanshu56
Resolver II
Resolver II

Hi @MartinBT,

 

First create a new column
test = LEFT(Table1[issue key],2)

 

then create a measure

Measure = SUMX(Table1,IF(Table1[test] <> "IW",(Table1[hours]),0))

 

Please see the attached snapshotsol.PNG

 

 

 

Thanks,

Himanshu

View solution in original post

2 REPLIES 2
himanshu56
Resolver II
Resolver II

Hi @MartinBT,

 

First create a new column
test = LEFT(Table1[issue key],2)

 

then create a measure

Measure = SUMX(Table1,IF(Table1[test] <> "IW",(Table1[hours]),0))

 

Please see the attached snapshotsol.PNG

 

 

 

Thanks,

Himanshu

Great solution @himanshu56


Thanks for helping out, it works like a charm. I didnt think of extracting the IW first in a column. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.