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.
Hi,
I have a datasets of "Company_Sales Invoice Line", "Company_Item" and "Company_Product Group". I have applied RANKX() to calculate rank for both Product Group (Category) and Item (Sub-Category). However, it is not giving me the desired result.
Request someone to highlight what am I doing wrong here. Measure 1 is just calculation of the Invoice Qty which is mentioned in the data set as KGs. So it has been converted to Metric Tonnes by dividing by 1000.
Mentioned below is the DAX code that I am using and attached herewith is the photo of my dashboard where Rank of Products are not showing of correctly whereas the same is shown correctly for the item level.
Measure 1
Solved! Go to Solution.
Hi,
You may download my solution file from here.
Hope this helps.
Hi,
Share the download link of the PBI file.
Access Denied message
Please confirm the email id which I have to give access to
Make the file accessible to everyone. I would not like to share my e-mail address.
Hi,
You may download my solution file from here.
Hope this helps.
Thanks a lot for the solution.
However, I also want to know what was wrong that I was doing. I was using the following code and the hierarchy was also correct i.e first the sub-category and then the category. Then was it not giving the desired result.
It's done. No need to reply anymore
You are welcome. It was with the filter condition of amount > 0.
Try this one please
@SaurabhDas85 ,Based on what I got
The order should be reverse of the hierarchy, use isinscope at both places
IsInScope - Switch Rank at different levels: https://youtu.be/kh0gezKICEM
Please share your email id as well
Can you please do the changes in the file and share it with me. Something is there that I am not doing correctly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
79 | |
48 | |
38 | |
31 |
User | Count |
---|---|
192 | |
79 | |
70 | |
50 | |
42 |