Forum Discussion
Remove filter in If statement
- 9 years ago
How about creating two calculated columns:
Total Costs = IF(PL_Blink_Cube[SCOA Level06 ID] = 4500000000, PL_Blink_Cube[Amount],BLANK())
Some Costs = IF(PL_Blink_Cube[SCOA Level10 ID] = 64405401, PL_Blink_Cube[Amount],BLANK())
This way you keep the rest of the table and have all your relationships.
Hi,
See the below the table. As you can see there are multiple columns as part of this hierarchy. I want to show in 2 rows the total costs (col SCOA Level06 ID) and in the row below 'some fixed costs' (account 64405401 Col SCOA Level10 ID).
Hope this clarifies.
Thanks
| SCOA Level06 ID | SCOA Level07 ID | SCOA Level08 ID | SCOA Level09 ID | SCOA Level10 ID | Amount |
| 4500000000 | 4510000000 | 4511000000 | 4511100000 | 64405401 | 20 |
| 4500000000 | 4510000000 | 4511000000 | 4511100000 | 64405402 | 25 |
| 4500000000 | 4510000000 | 4511000000 | 4511100000 | 64405403 | 30 |
| 4500000000 | 4510000000 | 4511000000 | 4511200000 | 64405404 | 10 |
| 4500000000 | 4510000000 | 4511000000 | 4511200000 | 64405405 | 5 |
| 4500000000 | 4510000000 | 4511000000 | 4511200000 | 64405406 | 100 |
| 4500000000 | 4510000000 | 4512000000 | 4512100000 | 64405407 | 45 |
| 4500000000 | 4510000000 | 4512000000 | 4512100000 | 64405408 | 70 |
| 4500000000 | 4510000000 | 4512000000 | 4512100000 | 64405409 | 70 |
| 4500000000 | 4510000000 | 4512000000 | 4512200000 | 64405410 | 30 |
| 4500000000 | 4520000000 | 4521000000 | 4521100000 | 64405411 | 30 |
| 4500000000 | 4520000000 | 4521000000 | 4521100000 | 64405412 | 30 |
| 4500000000 | 4520000000 | 4521000000 | 4521100000 | 64405413 | 10 |
| 4500000000 | 4520000000 | 4521000000 | 4521100000 | 64405414 | 10 |
| 4500000000 | 4520000000 | 4521000000 | 4521200000 | 64405415 | 15 |
Sander800,
The only way I can think of is to create a new table using DAX below.
Table 2 = SUMMARIZE(PL_Blink_Cube,"Fixed Expenses",CALCULATE(SUM(PL_Blink_Cube[Amount]),FILTER(PL_Blink_Cube,PL_Blink_Cube[SCOA Level06 ID]=4500000000)),"Some fixed costs",CALCULATE(SUM(PL_Blink_Cube[Amount]),FILTER(PL_Blink_Cube,AND(PL_Blink_Cube[SCOA Level06 ID]=4500000000,PL_Blink_Cube[SCOA Level10 ID]=64405401))))
Regards,
Lydia
- robofski9 years agoResolver II
How about creating two calculated columns:
Total Costs = IF(PL_Blink_Cube[SCOA Level06 ID] = 4500000000, PL_Blink_Cube[Amount],BLANK())
Some Costs = IF(PL_Blink_Cube[SCOA Level10 ID] = 64405401, PL_Blink_Cube[Amount],BLANK())
This way you keep the rest of the table and have all your relationships.
- Sander8009 years agoHelper I
Hi Lydia,
This really is a big step in the right direction.
However this way, of course, I loose al my relations. How can I add (the other) dimensions to this new table? - Anonymous9 years agoNot applicable
- Sander8009 years agoHelper I
Thanks all,
This really helps me in the right direction. I think this will help me solve me issue.
Again thanks for the help!