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
carlochecchia
Helper I
Helper I

Decimal places showing in Matrix

Hi all,

 

I have a question that I am struggling with and was wondering if anyone could assist me.

 

I have three variables:

1. a text string (education),

2. another text string (yes or no) 

3. numerical values (weights)

 

I would like to calculate the percentage of people who said yes/no based on their education level.

 

Ive created the following matrix:

1. yes/no variable in the line

2.education on the columns

3. weights on value (ive asked it to calculate based on the percentage of the row)

 

Everything works fine but i cant get rid of the 2 decimals in my results. 

 

Can anyone help, please?

 

 

 

2 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

If using Quick Measures or Show value as, I am not aware of a way to control decimal places.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

v-yuezhe-msft
Employee
Employee

@carlochecchia,

You can create a calculated column using Dax below, then control decimal places of this column.

Percent of row = Table[Weights]/CALCULATE(SUM(Table[Weights]),ALLEXCEPT(Table,Table[Yes/no]))
1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yuezhe-msft
Employee
Employee

@carlochecchia,

You can create a calculated column using Dax below, then control decimal places of this column.

Percent of row = Table[Weights]/CALCULATE(SUM(Table[Weights]),ALLEXCEPT(Table,Table[Yes/no]))
1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

If using Quick Measures or Show value as, I am not aware of a way to control decimal places.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thats what i thought. Thanks for the reply

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.