Forum Discussion
BieBel
Helper I
1 year agoCalculated measure by row I cannot get it to work ...
I have to calculate the room surfaces for different room types => RM[RM_CAT] is not BATHROOM or BASEMENT. I got the measure to 'work' as far as the roomtypes, but I need to (re)group the total surfa...
BieBel
Helper I
1 year ago| rm_type | (Multiple Items) |
| Row Labels | Sum of area |
| 0008 | 9,89 |
| 0013 | 302,75 |
| 0014 | 1,58 |
| 0015 | 7,8 |
| 0016 | 992,73 |
| 0018 | 566,51 |
| 0024 | 307,39 |
rm_type has been filtered in this pivot
- Thejeswar1 year ago
Super User
Hi BieBel ,
As I understand, you want data in details for all room types except Basement and Bathroom while your total needs to be at bl_id with all rooms considered.
You can use the below DAX to get it
RoomArea = IF(ISINSCOPE(Table1[rm_type]), CALCULATE([TotalArea], FILTER(Table1, AND(Table1[rm_type] <> "BASEMENT", Table1[rm_type]<>"BATHROOM"))), IF(ISINSCOPE(Table1[bl_id]), CALCULATE ( [TotalArea], ALLEXCEPT ( 'Table1', 'Table1'[bl_id] ) )))TotalArea = SUM(Table1[area])
If this solves your question, mark it as solution and appreciate with a Kudo !
Regards,