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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.