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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Find First Negative Value In Column

I have a measure that finds the minimum value found in a separate table, in this Example, 504 (x) is the minimum value found in column B (y), but I need it to instead find the first negative value, so in this example 441 (z). How do I create a measure that does so?

 

ExampleExample

2 REPLIES 2
danextian
Super User
Super User

Hi @Anonymous ,

 

The solution will depend on how you want to find the first negative as the data could always be sorted by different columns and may not be in the same order as your source data. Is it by date, descending or ascending? By a column which can be arrange alphabeticaly? By the row number based on the source data? Etc.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

Is it possible to create a column that sorts the values by date of the first negative value that is found in the source data? So if 441 = 6/4/22, 504 = 6/10/22, and 1008 = 5/4/22, the column's values would be: 6/4/22, 6/10/22, and 5/4/22?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.