March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I would like to show the top 3 company tickers based on 'Weight, %' column.
I would also like this calculation to be responsive to a 'report view' filter, when filtering by year (i.e. top 3 companies in year 2022 will be different than in 2021, etc.)
Here is the full data set if needed:
https://docs.google.com/spreadsheets/d/1Sa9xva8HVuW7178WPJPV-nv0ClrqMwDM19SokaIztMM/edit#gid=0
Many thanks in advance
Hi,
I don't know how you want to model your data, but I assume your datamodel looks something like below.
I saw that there are two companies who has two Ticker categories. Please correct me if I misunderstood.
Top3 weight percent measure: =
CALCULATE (
DIVIDE ( SUM ( Data[Shares] ), SUM ( Data[Value] ) ),
KEEPFILTERS (
WINDOW (
1,
ABS,
3,
ABS,
ALLSELECTED ( Ticker[Ticker] ),
ORDERBY (
CALCULATE ( DIVIDE ( SUM ( Data[Shares] ), SUM ( Data[Value] ) ) ), DESC
)
)
)
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |