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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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