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
puj831
Frequent Visitor

filter sum two columns

example3.PNG

Hi All, I would like to filter this table in powerbi by the sum of V1 and V2 > 0. Here's what I have so far. 

 

FILTER(SUMX(DatawarehouseSample[Tow_Calls_Accepted_Volume] + DatawarehouseSample[Tow_Calls_Rejected_Volume]> 0))

Thanks so much. 

1 ACCEPTED SOLUTION

Hi @puj831

Please have a look at my test to see if it helps.

create a calculated column

IF = IF([V1]+[V2]>0,1,0)

9.png

create a new table

Table = FILTER(Sheet1,[IF]=1)

10.png

 

Best Regrads

Maggie

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey,

 

I'm not sure, but I guess that your formula will not work, because the DAX formula SUMX needs a table statement as first parameter.

 

But maybe you might consider to create a calculated column that returns 1 or an appropriate text string lik "match" if the sum of column value 1 + column value 2 is greater 0, and otherwise 0 or "does not match". than you can use this column to filter the table either as a slicer or in the visual filter band of an individual visual.

 

Hopefully this gets you started

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Thanks! I'm trying to create an if/then statement with a calculated column, however it is not working. It doesn't allow me to use an existing column, but only gives me the option to use past calculated columns. 

Hi @puj831

Please have a look at my test to see if it helps.

create a calculated column

IF = IF([V1]+[V2]>0,1,0)

9.png

create a new table

Table = FILTER(Sheet1,[IF]=1)

10.png

 

Best Regrads

Maggie

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.