Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am trying to find the date that first production of any kind (green>0 or red>0) occurred for an item and to assign that date across the category item #. Below is a sample set of my data and a column showing the expected results I hope to get. Please help!
Date | Item # | Green | Red | Expected Results (First Prod Date) |
1/1/2023 | 1 | 0.00 | 0.00 | 1/3/2023 |
1/2/2023 | 1 | 0.00 | 0.00 | 1/3/2023 |
1/3/2023 | 1 | 8.00 | 4.00 | 1/3/2023 |
1/4/2023 | 1 | 3.00 | 75.00 | 1/3/2023 |
1/1/2023 | 2 | 19.00 | 44.00 | 1/1/2023 |
1/2/2023 | 2 | 0.00 | 0.00 | 1/1/2023 |
1/3/2023 | 2 | 24.00 | 46.00 | 1/1/2023 |
1/1/2023 | 3 | 0.00 | 0.00 | 1/2/2023 |
1/2/2023 | 3 | 17.00 | 17.00 | 1/2/2023 |
Solved! Go to Solution.
hi @sboobar
try like:
How would this same formula work if the two columns that needed to be <> 0 came from two different tables? For example I still need the first date of production between red or green of an item but those columns are in the two tables {see below}. The tables are already joined by an index in the model
TABLE 1 | |||
Date | Item | Green | |
1/1/2023 | 1 | 7 | |
1/2/2023 | 1 | 545 | |
1/3/2023 | 1 | 68 | |
1/1/2023 | 2 | 21 | |
1/2/2023 | 2 | 547 | |
1/3/2023 | 2 | 85 | |
1/1/2023 | 3 | 312 | |
1/2/2023 | 3 | 0 | |
1/3/2023 | 3 | 4 | |
TABLE 2 | |||
Date | Item | Red | |
1/1/2023 | 1 | 5 | |
1/2/2023 | 1 | 64 | |
1/3/2023 | 1 | 12 | |
1/1/2023 | 2 | 78 | |
1/2/2023 | 2 | 92 | |
1/3/2023 | 2 | 41 | |
1/1/2023 | 3 | 2 | |
1/2/2023 | 3 | 7 | |
1/3/2023 | 3 | 7 |
This worked! Thanks!
hi @sboobar
try like:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |