Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
There are 3 columns in table, company, model and sale. There are 2 company name and different models for them, how can i get the 2nd highest sale model. I want the model name which have the 2nd highest sale in both company.
Solved! Go to Solution.
i have created a measure Rank = RANKX(ALLEXCEPT('Table','Table'[Class Name]),CALCULATE(SUM([EPI CNV 100]),ALLEXCEPT('Table','Table'[Class Name],'Table'[Insured Name])),,DESC,Dense) then used this one in the filter to get only 2nd highest value
Hi @VISRAI ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
i have created a measure Rank = RANKX(ALLEXCEPT('Table','Table'[Class Name]),CALCULATE(SUM([EPI CNV 100]),ALLEXCEPT('Table','Table'[Class Name],'Table'[Insured Name])),,DESC,Dense) then used this one in the filter to get only 2nd highest value
@VISRAI Should be something along the lines of:
Measure =
VAR __Table = SUMMARIZE( 'Table', [model], "__Value", MAX('Table'[sale]) )
VAR __MaxSale = MAXX( __Table, [__Value] )
VAR __2ndMaxSale = MAXX( FILTER( __Table, [__Value] <> __MaxSale ), [__Value] )
VAR __Result = MAXX( FILTER( __Table, [__Value] = __2ndMaxSale ), [model] )
RETURN
__Result
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
5 | |
2 | |
1 | |
1 | |
1 |