Forum Discussion
marcos_osorio
6 years agoHelper II
Calculation and filter problem
Hi, sorry to bother you, because I think this is a quite easy problem, but unitl now, cannot solve it. I have two tables: TableA TableB Size ...
- 6 years ago
Create a new column in table A
PriceUnits = sumx(filter(TableB, TableB[KEY (Size&Country)] = TableA[KEY (Size&Country)] && TableB[Price2] > TableA[Price] ),Tableb[Units])Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin
kentyler
6 years agoSolution Sage
try extracted a variable
calculate(sum(Tableb[Units]), TableB[Price2] > TableA[Price] + 1),
VAR a_price = SELECTEDVALUE(TableA[Price]) + 1
CALCULATE(SUM(Tableb[Units]),TableB[Price2] > a_price)