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.
Hi All,
I have a complicated situation here. I got 3 tables. Is there any Measure I could find out the sum price by
1.) Filter Status as "Progress" in Table A (Result - ID: 1, 2, 7, 8, 9, 10)
2.) Sort out that appeared already in Table B & C (Result - ID: 2, 9 , 10)
3.) SUM the Pirce of ID: 2, 9, 10 (Result - Price: 35)
Table A - Master | ||
ID | Price | Status |
1 | 5.00 | Progress |
2 | 5.00 | Progress |
3 | 8.00 | Done |
4 | 8.00 | Done |
5 | 10.00 | Done |
6 | 10.00 | Done |
7 | 12.00 | Progress |
8 | 12.00 | Progress |
9 | 15.00 | Progress |
10 | 15.00 | Progress |
Table B | ||
ID | Price | Status |
1 | 5.00 | Progress |
5 | 10.00 | Progress |
7 | 12.00 | Progress |
8 | 12.00 | Progress |
Table C | ||
ID | Price | Status |
3 | 8.00 | Progress |
6 | 10.00 | Progress |
Solved! Go to Solution.
@amitchandak it seems there is something missing. Would be appreciared if I could know where goes wrong.
Please find the attached file after signature
Measure =
var _d = EXCEPT(EXCEPT(FILTER(TableA,TableA[Status]="Progress"),TableB),TableC)
return
sumx(_d,[Price])
If there is a keyword or space, table name needs to be there in a single quote. Better you let power BI suggest you the name and you take it. Type few letter power Bi will suggest
@ngct1112 , I did not test it. But try like
measure =
var _d = except(except(filter(TableA,TableA[Status]="Status"),TableB),TableC)
return
sumx(_d,[Price])
@amitchandak it seems there is something missing. Would be appreciared if I could know where goes wrong.
Please find the attached file after signature
Measure =
var _d = EXCEPT(EXCEPT(FILTER(TableA,TableA[Status]="Progress"),TableB),TableC)
return
sumx(_d,[Price])
Yes, yours is working perfectly.
I think its because I need to update mr PI version. Great thanks for your help!
@amitchandak Sorry that I would like to a little more advice.
I found the table names in your BI, there are no apostrophe'' for Table A & B & C but all of my table includes the apostrophe'' ('Table A', 'Table B', 'Table C'), that makes the formula cannot run properly in my BI. Do you have any idea how to slove it?
If there is a keyword or space, table name needs to be there in a single quote. Better you let power BI suggest you the name and you take it. Type few letter power Bi will suggest
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 |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |