Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
i have made a mock up of what my table looks like. so my goal is to take remsales minus onhand for a item and return y or n if we can cover all orders. so for example below 432-10 is in the table 2 times. when test runs which is what im using to show what im looking for. i want it to take all orders for a part not just a row level. the first item in the chart can be coverred but at the bottom we see the item again and we do not have enough to cover both orders so it should return n for that item number.
Solved! Go to Solution.
hi @DustinD ,
try to add a calculated column like:
Test2 =
VAR _t = FILTER(data, data[Item]=EARLIER(data[Item]))
VAR _r = SUMX( _t, data[Resales])
VAR _o = MAXX( _t, data[On-Hand])
RETURN
IF(_o>=_r, "y", "n")
it worked like:
this worked exactly how i wanted. thanks
hi @DustinD ,
try to add a calculated column like:
Test2 =
VAR _t = FILTER(data, data[Item]=EARLIER(data[Item]))
VAR _r = SUMX( _t, data[Resales])
VAR _o = MAXX( _t, data[On-Hand])
RETURN
IF(_o>=_r, "y", "n")
it worked like:
no, it won't. just try and let us know.
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 |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |