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

First non blank value across columns (M language)

Hi,

is there a way for me to produce the below result in power query using m language?

I have a table of time and I need to grab the first non blank across the columns (horizontally)
in excel i am using this forumula: =INDEX(A2:J2,MATCH(TRUE,INDEX((A2:J2<>0),0),0))ladyhaley_0-1618203700044.png

 

I would perfer power query over DAX in this case because i need to join this table to another and would rather not load all the not needed columns.

 

TIA.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
2 REPLIES 2
amitchandak
Super User
Super User

Anonymous
Not applicable

Thank you 🙂 I knew it was much simplier then a long if statement 🙂

 

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.