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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
sreesh
New Member

Need Help: Unable to substitute part of column string with measure and create a rank

Hi Everyone, 

 

I am trying to create a measure which would replace the text "[Client]" in QuestionVerbiage with the selected value of the ClientName slicer. What is the best way to aggregate the QuestionVerbiage column to not need to bring it into context to create the substituted measure?

 

I also need to create a rank on the average(raw response) to get the top N and bottom N substituted Measure. 

 

Could someone please provide any direction with regards to this issue?

 

Thank You in Advance!

 

PBIX file 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sreesh ,

 

You could hide the QuestionVerbiage column. Just turn off word-wrap for your column headers and values. Then move  your mouse cursor into the column header for the column you want to hide.

vbofengmsft_0-1732761759078.png

 

Aboult Rank ,please try

RankOnResponse = RANKX(
    ALL('Question-Dim'),
    CALCULATE(AVERAGE('RawResponse-Fact'[Raw Response]))
)

vbofengmsft_1-1732762340128.png

 

 

Best Regards,

Bof

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @sreesh ,

 

You could hide the QuestionVerbiage column. Just turn off word-wrap for your column headers and values. Then move  your mouse cursor into the column header for the column you want to hide.

vbofengmsft_0-1732761759078.png

 

Aboult Rank ,please try

RankOnResponse = RANKX(
    ALL('Question-Dim'),
    CALCULATE(AVERAGE('RawResponse-Fact'[Raw Response]))
)

vbofengmsft_1-1732762340128.png

 

 

Best Regards,

Bof

 

sreesh
New Member

Thank you for your reply. I need to get the three rows in the UpdatedQuestionVerbiage displayed without adding QuestionVerbiage Column to the table. If I remove QuestionVerbiage in the below table, I end up getting only one row in UpdatedQuestionVerbiage. Is there a way to get all the rows even if QuestionVerbiage is not present? Please let me know. 

 

sreesh_0-1732747058764.png

For that you need to use disconnected tables so you can enforce the cartesian. Are you sure you want to go there?

lbendlin
Super User
Super User

What is the best way to aggregate the QuestionVerbiage column

You cannot do that in a matrix visual. There, rows and columns need to come from table columns, not from measures.

 

You can use a table visual instead.

lbendlin_0-1732746598587.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.