Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to create a measure that calculates the Sum of all spend for “Type” (A) where “Transpo” equals(car, boat, truck , bike) while excluding Accounts 9,10,11. Can anyone help me with this? * The Transpo Column is in a separate table*
Type | Spend | Account | Transpo Id |
A | 20,000,000 | 1 | 100 |
A | 20,000,000 | 2 | 101 |
A | 20,000,000 | 3 | 102 |
A | 20,000,000 | 4 | 103 |
A | 20,000,000 | 5 | 104 |
A | 50,000,000 | 6 | 105 |
A | 10,000,000 | 7 | 102 |
A | 10,000,000 | 8 | 103 |
A | 50,000,000 | 9 | 104 |
A | 50,000,000 | 10 | 105 |
A | 50,000,000 | 11 | 106 |
B | 10,000,000 | 3 | 107 |
B | 10,000,000 | 3 | 108 |
Transpo id | Transpo |
100 | car |
101 | Boat |
102 | Truck |
103 | Bike |
104 | Plane |
105 | Helicopter |
106 | Scooter |
107 | board |
108 | skate |
Solved! Go to Solution.
@dw700d , assuming table 1 and table 2 are connected
calculate(sum(Table[Spend]), filter(Table, Table[Type] ="A" && not(Table[Account] in {9,10,11})), filter(Table2, table2[Transpo] in{"car", "boat", "truck" , "bike"}))
Hello @dw700d
It seems like you missed the column name in the filter
FILTER('All Locations','All Locations'[Column]{"CELL","CELL DAS","CELL CO","CELL NODE", "SMART CELL", "MICROWAVE"}))
Hello @dw700d
It seems like you missed the column name in the filter
FILTER('All Locations','All Locations'[Column]{"CELL","CELL DAS","CELL CO","CELL NODE", "SMART CELL", "MICROWAVE"}))
@dw700d , assuming table 1 and table 2 are connected
calculate(sum(Table[Spend]), filter(Table, Table[Type] ="A" && not(Table[Account] in {9,10,11})), filter(Table2, table2[Transpo] in{"car", "boat", "truck" , "bike"}))
Thank you @amitchandak
My Tables are connected but I get the following message below
Any suggestions?
@dw700d , can share the formula, you used?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |