Forum Discussion
jbwestrock
3 years agoFrequent Visitor
CALCULATETABLE with multiple filters
Hello, I am trying to create a new table from a much larger existing table, with only the filtered rows. I have tried a few different versions of CalculateTable and other work arounds mentioned ...
- Anonymous3 years ago
Hi jbwestrock ,
Step 1: Under reporting go to modelling and click on create new table
Step 2: Enter this into formulaUnique_Table = SUMMARIZECOLUMNS ( Sheet2[BUSINESS_UNIT], Sheet2[EMPLID], Sheet2[REG_REGION], Sheet2[EMPL_TYPE], FILTER ( Sheet2, Sheet2[BUSINESS_UNIT] IN { "B4263", "B4266" } ) )
Step 3: Unique table that you an amend
BR , if that helps please mark this as a solution
jbwestrock
3 years agoFrequent Visitor
Below is a recreated version, but it is close, minus sensitive data:
| EMPLID | BUSINESS_UNIT | DESCR | EMPL_TYPE | EFFDT | A.ACTION_DT | ACTION | ACTION_REASON | DESCR2 | REG_REGION | DESCR3 | LOCATION | HIRES/TERMS | YEARMO | YEARMOAGO | DATENUMEWEEKAGO | YEARMOWEEKAGO | DNWA | YEARMOINDEX | YEARMOEMPLID | DIMDATESINDEX | DEIMDATESWEEKSTARTDATE | LASTWEEKSTARTDATE | DIMDATESYEARMOYRAGO | BUSINESS UNIT AND DESCRIPTION | VARIANCE |
| 123456 | B4263 | ABC CO | H | 10/3/2022 | 10/1/2022 | HIR | AAA | New Hire | USA | City 1 | 1x1ag1 | Hires | Oct-22 | Sep-22 | 41 | 10/3/2021 | XXXXXXXXXX | 1 | 048291 | 2 | 41 | 10/3/2021 | 44595 | B4263_ABC CO | 1 |
| 234567 | B4266 | John Co | H | 10/3/2022 | 10/1/2022 | HIR | BBB | New Hire | USA | City 2 | 1x1ag2 | Hires | Nov-22 | Oct-22 | 41 | 10/3/2021 | XXXXXXXXXX | 1 | 049433 | 2 | 41 | 10/3/2021 | 44595 | B4266_John Co | 1 |
| 345678 | B4356 | Steve Co | H | 10/3/2022 | 10/1/2022 | HIR | CCC | New Hire | USA | City 3 | 1x1ag3 | Hires | Dec-22 | Nov-22 | 41 | 10/3/2021 | XXXXXXXXXX | 1 | 050574 | 2 | 41 | 10/3/2021 | 44595 | B4356_Steve Co | -2 |
| 456789 | B4322 | Converting Co | H | 10/3/2022 | 10/1/2022 | HIR |
Anonymous
3 years agoNot applicable
Hi jbwestrock ,
Step 1: Under reporting go to modelling and click on create new table
Step 2: Enter this into formula
Unique_Table =
SUMMARIZECOLUMNS (
Sheet2[BUSINESS_UNIT],
Sheet2[EMPLID],
Sheet2[REG_REGION],
Sheet2[EMPL_TYPE],
FILTER (
Sheet2,
Sheet2[BUSINESS_UNIT]
IN {
"B4263",
"B4266"
}
)
)
Step 3: Unique table that you an amend
BR , if that helps please mark this as a solution
- jbwestrock3 years agoFrequent Visitor
Thanks for the info - so I just need to list all the column names ?
- Anonymous3 years agoNot applicable
Yes, thats right.
If it helps , please mark this as a solution 🙂
BR
- jbwestrock3 years agoFrequent Visitor
That worked in my test model. Putting it in actual model.
Thank you!