Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi!
I have an strange rankx issue. I used to use RANKX measure currently in other work Im doing, but now in this file all RANK im trying to do does not have the expected result. It is very strange becasue as I said before I know this formula and in previous tables it works fine.
In the photo, the marked columns are the RANKX measures and every rank column is for the data at its right side. So, the fist rank column is the rank of the second column (data with font color). Now, I'd like to know what Im doing wrong, I apprecciate your help a lot because it is important to me solve this problem as soon as posible.
Here is my pbix file (sorry but the file is like huge)
https://1drv.ms/u/s!AtTnrgPUQzQCnAUc2MYHfnad2lPl
Thank you again
Solved! Go to Solution.
Try this MEASURE as a test
I just replaced ALL( 'TABLA CRUCE'[NIT])....... with........... ALL( 'TABLA CRUCE'[NIT],'TABLA CRUCE'[NOMBRE])
Rank Dimension Interna =
VAR RankDimension =
RANKX (
ALL ( 'TABLA CRUCE'[NIT], 'TABLA CRUCE'[NOMBRE] ),
[Dimensión Interna],
,
0,
DENSE
)
RETURN
IF ( [Dimensión Interna] = 0, BLANK (), RankDimension )
Try this MEASURE as a test
I just replaced ALL( 'TABLA CRUCE'[NIT])....... with........... ALL( 'TABLA CRUCE'[NIT],'TABLA CRUCE'[NOMBRE])
Rank Dimension Interna =
VAR RankDimension =
RANKX (
ALL ( 'TABLA CRUCE'[NIT], 'TABLA CRUCE'[NOMBRE] ),
[Dimensión Interna],
,
0,
DENSE
)
RETURN
IF ( [Dimensión Interna] = 0, BLANK (), RankDimension )
Hi! @Zubair_Muhammad
Thanks a lot for your response. It seems like could work but the rank omitted the number rank number 9. It just pass from 8 to 10, Do you know why this is happening? Even the rank assumes that there are 16 companies but the true number of those is 15. Thank you very much, really.
This is because you have BLANK "NIT" items which are also RANKED
These items are filtered OUT at REPORT LEVEL
See the image below
Hi! @Zubair_Muhammad
Ok, thanks for your entire help. Im will try how to solve the BLANK problem. Until this point, your solution works excellent. Thanks again. Also, if you have any idea how to overcome this problem its gonna be fine.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 36 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 73 | |
| 73 | |
| 38 | |
| 35 | |
| 26 |