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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

How to capture el 2do value but high

I have a problem with an exercise that I am doing, in another post I read that you could capture the 2nd highest value by assigning a column of RANK to determine the range, so far so good, but at the time of wanting to capture it I leave empty, if someone could help me I would appreciate it very much,

Joffre_RZ_1-1671122456478.png

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @Syndicate_Admin 

First you need to confirm which table you used for the [Rank] measure, then try to replace the "filter table" to the table in "filter"

vxinruzhumsft_3-1671156862513.png

e.g 

2st high = CALCULATE(SUM('Table (4)'[Medida]),FILTER(ALLSELECTED('Table (4)'),[Rank]=2))

vxinruzhumsft_0-1671156682433.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello friend, thank you very much for the help below I will give you more details about the exercise I am doing, I will also attach all the data next to the main file so that it is easier for you to fix the error if you wish, the file is called PowerBi2004, as you can see I am working with a relationship of different tables that I will also attach them:

Joffre_RZ_0-1671195280519.png

These relationships are made because the data have their respective encoding, that allows to put the name of OP_Nombre in the report and that the data of Candidatos_Votos are shown in a grouped way, both the sum and the percentage of it with their respective filters, now the problems come when working with the measures, At first no, as you can see if I want to obtain the decimar value of the percentage is simple, the complex thing comes when you want to work new measures of values of other measures, for example in this view in measure 2, it is observed that it does not yield the result that devería, but that is resolved in another measure as seen in the card

Joffre_RZ_1-1671195673598.png

Likewise with regard to the view of the problem I work with the same measure, I do another one called Rank, but at the time of trying to do what you told me, you can not since it is not with a single table that is working, but of 2 and measures, and there I think the problem is born, I hope you have understood my explanation

Files attached to the following Drive link:

https://drive.google.com/file/d/1LSwz1Yf-hotRt1yP2aSwaLhPpOEz4HeD/view?usp=share_link

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.