cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Thakshila
Frequent Visitor

issue when getting the nth value with DAX query for sub categories


I'm trying to get the nth value using below dataset. I could get the nth value for the correct category. When I added the sub category. It gives the wrong result for the sub categories. It takes the nth value for the sub categories as well. how to avoid this and get the correct result for the sub categories as well. I have attached my .PBI file and pictures of my dax query and results as well.
(https://1drv.ms/u/s!AtRjTEx4ATvZykgX9eSCVl0xBFXa?e=Fz2ctR )
Any help would be appriciated. 
Please check the below screen shot. 


Dax Query
pbi2.PNG

 

Results    

PBI1.PNG

 

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

1 REPLY 1
wdx223_Daniel
Super User
Super User

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.