The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Why is this happening. I want to rank the each quarter in the respective years. How come this is happening. Any explanation as to why this is happening when it should give the correct results.
Hi @Cyriackpazhe
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @Cyriackpazhe
I wanted to check if you had the opportunity to review the information provided @divyed , @BeaBF and @Azadsingh . Please feel free to contact us if you have any further questions. If their response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @Cyriackpazhe
Thank you for reaching out microsoft fabric community forum.
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hello @Cyriackpazhe ,
You can try below dax for your purpose, this will be easier and optimized :
NewRank =
ROWNUMBER (
ALL ( Datestbl[Year], Datestbl[QuarterOfYear] ), // Add fields you want in visual
ORDERBY ( [TotalSales], DESC ),
PARTITIONBY ( Datestbl[Year] ) //Will reset ranking for each year
)
I hope this helps.
Did I answer your query ? Mark this as solution if this helps, Kudos are appreciated.
Warm Regards,
Neeraj
@Cyriackpazhe Hi! Try with:
Rank2 =
RANKX(
ALLEXCEPT('Calendar', 'Calendar'[Date].[Year]),
[Total],
,
DESC,
Dense
)
BBF
Hi @Cyriackpazhe , Try this
"Rank_Quarter =RANKX(FILTER(ALL(Calendar),Calendar[Year] = SELECTEDVALUE(Calendar[Year]) ),[Total],, DESC)
User | Count |
---|---|
24 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |