Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Hello,
I thought my formula below was working, but upon closer inspection this morning I see that it is not. Also, I always try and post screenshots but it seems that sometimes they don't show up when the post is posted, so hopefully they will.
Very simply, the "Match Item" formula is supposed to be matching items from the Forecast table, to items in an Orders table. The "Match" formula then looks at the Match Item column, and if an item from the Forecast table matches an Item from the Orders table it should show up in the Match Item column (and will say "Forecasted - Ordered" which means it was forecasted, and it was ordered).
The problem, is that some matching items show up...and some do not. I can't determine any particular reason why. For example, in the first screenshot you can see that item VR-2P-1-1-06-L7P-06-U-S shows up in the Forecast table, but not in the "Match Item" column (but it should). Likewise, in the other table, you can see that item SR-2X-I-1-00-W-BF shows up in the Forecast table and shows up correctly under the match item column in the Orders table.
Just trying to figure out why it shows up for some, and not others.
The "items" are connected thru an inactive relationship.
Match Item = CALCULATETABLE(SUMMARIZE(Forecasts,Forecasts[Item]),USERELATIONSHIP(Forecasts[Item],Sales_Orders_for_Charts[Item]))
Match =
IF (
Sales_Orders_for_Charts[Match Item] <> BLANK(),
"Forecasted - Ordered",
IF (
Sales_Orders_for_Charts[Match Item]
= BLANK(),
"Unforecasted-Ordered",""
)
)
Forecast table (left) Orders table (right)
Solved! Go to Solution.
Hi @Anonymous
As tested, the method below works on my side.
Create measures
Measure = CALCULATE(MAX(forecast[Item]),USERELATIONSHIP(forecast[Item],orders[item]))
Measure 2 =
IF (
[Measure]<> BLANK(),
"Forecasted - Ordered",
"Unforecasted-Ordered"
)
Hi @Anonymous
As tested, the method below works on my side.
Create measures
Measure = CALCULATE(MAX(forecast[Item]),USERELATIONSHIP(forecast[Item],orders[item]))
Measure 2 =
IF (
[Measure]<> BLANK(),
"Forecasted - Ordered",
"Unforecasted-Ordered"
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |