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
If a customer is top customer in a particular financial period (say FY20) but its not the top ones in FY19 , we need to display value of it in FY19
if they select top 6 in parameter need to display top 6 is in one color and other values in different color
Output
Please help me to get this. I am able to get top 2 customers each year but not able to get other years data for same customer
regards,
ravi
Any pointers much appreciate
And Top should be based on user selection in parameter
Hi Ravi,
It seems a similar problem was asked about here, so credit ought to go to @VahidDM for this answer.
Modifying the solution for your data, we add a column:
Rank by Year =
RANKX (
FILTER ( ALL ( 'ExampleTable' ), [year] = EARLIER ( 'ExampleTable'[year]) ),
[sale],
,
DESC,
DENSE
)
Then, since you're only interested in the Top 2, we can define another column:
Color = if(ExampleTable[Rank by Year]<=2, "Green", "Yellow")
From here, the Matrix element will do the rest of the work. I've set it up as follows:
And the result is as you requested (if not my prettiest work):
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 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |