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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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