11.3ALLSELECTED

In Excel
ExcelSUBTOTAL, AGGREGATE
Match

The people who view your report often pick a few cities in a slicer. ALL still supplies all the cities, even those they left out. Often, you will rather want the share of each city in what they are looking at. That is the job of ALLSELECTED.

11.3.1Two filters on the same column

On a page, a Customers[City] slicer keeps New York and Chicago. Next to it, a table visual by city shows the revenue.

City

Chicago

New York

Toronto

Table visual, The revenue by city, with the slicer on New York and Chicago
CityRevenue
New York900,000
Chicago500,000
Total1,400,000

This is a reproduction of the Power BI interface for teaching purposes. It differs from the real interface.

Two filters apply here to Customers[City]. The slicer, outside the visual, keeps New York and Chicago. The row, inside the visual, keeps a single city. On the “Total” row, only the filter of the slicer remains, hence 1,400,000.

The rest of this lesson is part of izyDAX Pro

You have just read the first section. The next 4, their animations, the exercises and the summary are waiting for you with izyDAX Pro, in a single payment.