Forum Discussion
How to create a filtered table
- Anonymous9 years ago
Hi,
If I understand correctly you want a uique list for the columns Type, Formula and Brand?
I cannot reach your dataset because it is on your SharePoint.. also the url can be seen maybe good to know.
Based on this "Big table".
Try this formule:
SmallerBigTable = SUMMARIZE( BigTable; BigTable[Type]; BigTable[Formula]; BigTable[Brand] )
Result:
If your goal is to get the distinct columns you can also use Power Query, select the columns and choose "Remove duplicates".
My above example is a New Table based on a DAX expression. This comes handy when you also when to do a calculation for this table. Doing that it is suggested to use ADDCOLUMNS instread of doing the calculation in the SUMMARIZE function.
Example:
SmallerBigTable = ADDCOLUMNS ( SUMMARIZE ( BigTable; BigTable[Type]; BigTable[Formula]; BigTable[Brand] ); "Count of rows"; COUNTA ( BigTable[A] ) )Hope this helps!
- Anonymous9 years ago
Try this:
SmallerBigTable = SUMMARIZE( FILTER( BigTable; BigTable[Type]="A" ); BigTable[Type]; BigTable[Formula]; BigTable[Brand] )
Hi,
If I understand correctly you want a uique list for the columns Type, Formula and Brand?
I cannot reach your dataset because it is on your SharePoint.. also the url can be seen maybe good to know.
Based on this "Big table".
Try this formule:
SmallerBigTable = SUMMARIZE( BigTable; BigTable[Type]; BigTable[Formula]; BigTable[Brand] )
Result:
If your goal is to get the distinct columns you can also use Power Query, select the columns and choose "Remove duplicates".
My above example is a New Table based on a DAX expression. This comes handy when you also when to do a calculation for this table. Doing that it is suggested to use ADDCOLUMNS instread of doing the calculation in the SUMMARIZE function.
Example:
SmallerBigTable =
ADDCOLUMNS (
SUMMARIZE ( BigTable; BigTable[Type]; BigTable[Formula]; BigTable[Brand] );
"Count of rows"; COUNTA ( BigTable[A] )
)Hope this helps!
- hidenseek99 years agoPost Patron
Anonymous
SmallerBigTable = SUMMARIZE( BigTable; BigTable[Type]; BigTable[Formula]; BigTable[Brand] )
Above formula works great, except for one problem.
When I put above DAX, it brings all Types. How can I reformat the DAX expression
so that it will extract just Type A?
Many thanks,
H
- Anonymous9 years agoNot applicable
Try this:
SmallerBigTable = SUMMARIZE( FILTER( BigTable; BigTable[Type]="A" ); BigTable[Type]; BigTable[Formula]; BigTable[Brand] )
- hidenseek99 years agoPost Patron
Anonymous
Perfect!
Many thanks!
H