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
Anonymous
Not applicable

undefined

I have a three column i want a result like it select" T " from col1- and that should not contain 0 and null from col2 and col3 
col1    col2   col3           
A         1        null 
A         2         0
T        3          0
T       0          null
T       null      6

3 REPLIES 3
v-mengzhu-msft
Community Support
Community Support

Hi @Anonymous ,

 

what's your meaning of "not contain 0 and null from col2 and col3",from your description, I know you want to filter col1,but I don't understand "not contain o and null", because unless you delete col2 and col3, if you filter on this table, it will show the whole row.

 

So can you give me your expected result? so that i can know what you want.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, right click on the first column's heading and select "Unpivot Other Columns".  Filter the Value column with the criteria >0.  Does this help? 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Super User
Super User

@Anonymous Maybe:

col4 = 
  SWITCH(TRUE(),
    [col1] = "T" && [col2] > 0 && [col3] > 0, TRUE(),
    FALSE()
  )

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.