Forum Discussion
pwissing29
5 years agoRegular Visitor
Calculating the Inverse
So I have a large dataset. Its made up of 124,000 rows and 55 Columns. One column in particular is named "Product Family" In this column there are roughly 26 different Product Families, an example ...
- Anonymous5 years ago
Hi pwissing29 ,
1.Create a separate category table by entering data.
2.Create a measure to count, for example how many rows in the row have names other than "Isilon".
Count = SWITCH ( SELECTEDVALUE ( 'Category'[Category] ), "Isilon", CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', [Product Family] <> "Isilon" ) ), "DataDomain", CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', [Product Family] <> "DataDomain" ) ), "ABC", CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', [Product Family] <> "ABC" ) ), "BCD", CALCULATE ( COUNTROWS ( 'Table' ), FILTER ( 'Table', [Product Family] <> "BCD" ) ) )You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
HI pwissing29
Check the below link by Greg_Deckler
https://community.powerbi.com/t5/Quick-Measures-Gallery/Inverse-Aggregator/m-p/342266
It does what you asked for.