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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-yangliu-msft
Community Support
Community Support

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors