Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
darkhorse12
New Member

Get row value from specific column

Hey, I am new to Power BI, 

 

I have 2 columns,

and I want to get comments when I am on that report page.

 

Report Page Comment
Cycle timeNote: calculated cycle time
Delivery timeNote: delivered
load timeNote: 2.5 hours
detailed cycle timeNote: calculated detailed cycle time

 

I have created measure:

Note for Cycle Time =
var result = FILTER(ALLSELECTED(Notes[Comment]),
RANKX(ALLSELECTED(Notes[Comment]),Notes[Comment],,DESC)=3)
RETURN result
 
 
but not getting perfect values.
 
Does anyone suggest me?
 
thanks.
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @darkhorse12,

I'm still not so clear about your requirement, can you please explain them with some more detailed information with expected results?

How to Get Your Question Answered Quickly 

Did you mean to get the specific index of comments based on the report page groups? If that is the case, you can take a look t the following link to add the group index at the query editor side. Then you can simply write the DAX formula to lookup value based on the current gorup value and index.

Create Row Number for Each Group in Power BI using Power Query - RADACAD

LOOKUPVALUE function (DAX) - DAX | Microsoft Docs

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@darkhorse12 , Try to use TOPN

 

CALCULATE([Comments],TOPN(10,allselected(Notes[Comment]),[Comments] ,DESC),VALUES(Notes[Comment]))

 

or first create a rank Assuming Comment is measure, count of comment or something like that

Rank =RANKX(ALLSELECTED(Notes[Comment]),Notes[Comment],,DESC)

 

Then a measure

sumx(filter(values(Notes[Comment]), [Rank] =3) ,[Comment] )

 



Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
JirkaZ
Solution Specialist
Solution Specialist

What is the expected outcome? I kind of don't understand why you're using ranking in your DAX. 

The expected outcome is in the smart narrative is to choose the measure

like:- cycle time then it should show the result of that row's comment that (Note: Calculated cycle time) 

Anonymous
Not applicable

HI @darkhorse12,

I'm still not so clear about your requirement, can you please explain them with some more detailed information with expected results?

How to Get Your Question Answered Quickly 

Did you mean to get the specific index of comments based on the report page groups? If that is the case, you can take a look t the following link to add the group index at the query editor side. Then you can simply write the DAX formula to lookup value based on the current gorup value and index.

Create Row Number for Each Group in Power BI using Power Query - RADACAD

LOOKUPVALUE function (DAX) - DAX | Microsoft Docs

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.