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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Decimals in Measure

I'm using a table called "IV Data". I have a column named "CallfilevisitID" and one that is a key column that combines "Username" and "InterventionDate". 

I've created a measure to distinct count my CallfilevisitID column, and one to distinct count my key column. They are called "Distinct Count CallfilevisitID" and "Distinct Count Days by User". 

I then created a measure to Divide Distinct Count CallfilevisitID by Distinct Count Days by User to give me an average of the number of calls per day by user. 

The average measure is returning a rounded version of the average, and I need it to return the actual average down to 2 decimal places. 

Both The CallfilevisitID column and the Key column are text. 

 

Is it possible to have the average return as a non-rounding decimal number?


Thanks!

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

Very possible.  In the Fields pane to the right, select the measure in question.

 

In the Modeling ribbon at the top, there are options for formatting the field.  Make sure the data type is a decimal number, and then you can select a number of decimal places to show. Change it from Auto to 2.

Formatting.png

View solution in original post

2 REPLIES 2
Cmcmahan
Resident Rockstar
Resident Rockstar

Very possible.  In the Fields pane to the right, select the measure in question.

 

In the Modeling ribbon at the top, there are options for formatting the field.  Make sure the data type is a decimal number, and then you can select a number of decimal places to show. Change it from Auto to 2.

Formatting.png

Anonymous
Not applicable

I figured out what I was doing wrong.....

I tried to change the number format, but it never gave me the option to change it. 

Figured out that I had the card selected, and not actually the measure under fields. 

 

Thanks for your help!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.