cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
rlansing
Resolver I
Resolver I

Page Level Filter rejecting placement of RANK measure

Hello,

I am trying to place my measure that calculates item ranking into the "Page Level Filters" field so that I can filter the entire page to the top 15 Brands of a specific category of sales data. When I drag and drop the measure into the field, it does not stay there. It seems to reject the measure. I assume this is user error due to the contextual nature of the measure, but I would really like to filter by rank, how can I do it?

 

Here is how the measure is written:

$ Vol Rank = IF(SUM( 'DATA'[$ Vol] ) > 0, RANKX ( ALLSELECTED( 'DATA'[Brand] ), CALCULATE(SUM( 'DATA'[$ Vol] ), ALLEXCEPT( 'DATA', 'DATA'[Market], 'DATA'[Brand] ))), BLANK() )

 

Thank you,

Bobby

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Measures can't be used in slicers or page filters. Would need to create a calc column (or a measure that returns only top 15)

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Measures can't be used in slicers or page filters. Would need to create a calc column (or a measure that returns only top 15)

I am not able to create a calculated column using RANKX. Can you tell me exactly what work around I used to restrict my rank meanure below to top 5 in the entire page :

RankManuSales = RANKX(ALL(Manufacturers[Manufacturer]),[Total Sales], , desc)
Evogelpohl
Helper V
Helper V

My RANKX is far easier and I cannot use it as a filter at the report level or the page level.

 

Item Folder Rank = RANKX(all('Execution Log'[Item Folder]),'Execution Log'[Executions],,,Dense)

 

I want my entire report to be limited to only <=10 as this measure calculates.  Essentially an analysis on the "Top 10".

 

What gives?

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors