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
Morrison
Helper I
Helper I

RANKX with filter start at number 2

Hello,

I want to ask you for help on RANX measurement with filters.

By inserting the measure, the ranking starts from 2 and in some cases jumps one rank.

The formula used is this

 

Rank Incidenza Gara Comparto 1 = RANKX ( FILTER (ALL( 'dwh DimStore'), 'dwh DimStore'[Region]  IN {"X","Y","Z"})

    , calculate(sum('Venduto Totale'[Gara_Tot_quantita])/sum('Venduto Totale'[Tot_Scontrini])))

and the result is this

 

Rank Incidenza Gara Comparto 1

Store

Incidenza Pezzi_Presenze

2

A

61,77%

3

B

56,46%

4

C

54,06%

5

D

51,29%

6

E

47,98%

 

Thx all

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

It seems like there are filters being applied to the table. Use Performance Analyzer to get the DAX code generated for the table and have a look at it in DAX Studio. You could then potentially add those filters into the RANKX so that only those stores are included.

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

It seems like there are filters being applied to the table. Use Performance Analyzer to get the DAX code generated for the table and have a look at it in DAX Studio. You could then potentially add those filters into the RANKX so that only those stores are included.

Yes, there are other filters in the table. I followed your advice and added the missing filters. Now everything works correctly.
Thanks 1000 !!!

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.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

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