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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Sudbrl
Frequent Visitor

Align text in dax measure (power pivot)

Dear Sir 

 

I have created measures and Pivot Table Slicer where the user can choose measure from the slicer dynamically in the same column, the problem here is

can I justify (align) each measure as per my choice by adding some line code inside the respective measure ?

 

Centre: for measure with number output

 Largest Amt  (By Balance) 
70,000,000.00
156,016,735.80
137,727,676.84
17,596,390.93

 

Left: For measure with Text output

 Largest  Client Name 
Ram Co
Shyam Co
Hari Co
Immanuyal Inc

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi  @Sudbrl ,

I created some data:

vyangliumsft_0-1673941276512.png

Here are the steps you can follow:

1. Modeling – New parameter – Fields – select [Balance] and [Largest].

vyangliumsft_1-1673941276519.png

2. Place the [Parameter] of the Parameter Table in Visual.

vyangliumsft_2-1673941276521.png

3. Result:

vyangliumsft_3-1673941276522.png

 

 

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Dear Yang

Thank you for your reply. I am trying to do the same in excel using power pivot and it is for an official dashboard.

Due to an alignment problem, the report does not looks neat. Can it be done on excel itself ?

 

Sudbrl
Frequent Visitor

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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