Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lravikiran
Helper I
Helper I

Unable to Filter Ranks correctly when used with additional two dimensions in the Matrix Visual

Hi Gurus,

I have a matrix visual which looks some thing like this >

lravikiran_1-1684406293188.png

 

I am doing ranking on Cities with the Category on Columns and Segment in Rows. The Dax i have used for generating the Rank function is below 

City Rankx =
CALCULATE(
RANKX(ALLselected('Sample - Superstore'[City]),[Sales Measure]),
ALLSELECTED('Dim Category'[Category]),ALLSELECTED('Dim Segment'[Segment]))

Everything seems fine , except when iam filtering the City Rankx using either a controller (basically using an if condition) or directly from visual it is behaving odd and showing not the expected results.

For example , When i filter City Ranks  is less than or equal = 4, I am getting output as 2,2,3,4 unstead of 1,2,3,4


lravikiran_2-1684406590154.png


Pbix Link >https://drive.google.com/file/d/1gRRX6x_XoJsDLyW_AjqZMWAZ56bVSMsG/view?usp=share_link





0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.