![]() ![]() ![]() HardwareSum = CALCULATE(SUM(ExceptCategories),FILTER(ALL(ExceptCategories),ExceptCategories="Hardware")) Next, you create measures for each of your categories like this:ĬonsultancySum = CALCULATE(SUM(ExceptCategories),FILTER(ALL(ExceptCategories),ExceptCategories="Consultancy"))įruitSum = CALCULATE(SUM(ExceptCategories),FILTER(ALL(ExceptCategories),ExceptCategories="Fruit")) So, the first thing you do is you create a disconnected table (no relationships to anything) of all of your categories: I put your data into a table called ExceptCategories. But, you are probably not going to like the solution all that much. OK, amazingly, this is actually possible. In theory, you could essentially continue this technique ad infinitum. Create a table visualization with the Category from CategoryExcept1 and this new "Measures to Show 1" and you should have what you are looking for. Effectively, what those two VAR lines are doing are taking all of your category values, excluding the values selected in your first slicer and then excluding the values you selected in your second slicer. You should notice that this is exactly the same as the original "Measures to Show" measure (uses the same measures you previously created) except for the first two VAR lines and the references to CategoryExcept1 instead of CategoryExcept. "Software",IF(CONTAINS(mytable,"Software"),BLANK()), "Office Supplies",IF(CONTAINS(mytable,"Office Supplies"),BLANK()), "Juices",IF(CONTAINS(mytable,"Juices"),BLANK()), "Hardware",IF(CONTAINS(mytable,"Hardware"),BLANK()), "Fruit",IF(CONTAINS(mytable,"Fruit"),BLANK()), "Consultancy",IF(CONTAINS(mytable,"Consultancy"),BLANK()), VAR mytable = EXCEPT(mytable1,VALUES(ExceptCategories)) VAR mytable1 = EXCEPT(ALL(CategoryExcept),VALUES(CategoryExcept)) Edit interactions to not have this slicer filter the table that you have that you created with the original "Measures to Show". Then, create your second slicer based upon CategoryExcept, your original disconnected table. This should also be a completely disconnected table (not connected to CategoryExcept or ExceptCategories in my model. What I did was duplicate my disconnected table CategoryExcept as CategoryExcept1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |