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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Suzie_Suze_Sue
New Member

MROUND - Rounding to the nearest 5

Good afternoon,

Having an issue with MROUND.

I have a table with college courses, and would like to look at the FTE for each institution and course, how ever it doesn't seem to like "the value for FTE cannot be determined. Either the column doesn't exist, or there is not current row for this column"

So table would look something like this

 

YearInstitutionQualFTEGender
2019/201Dip11
2020/213Cert0.52
2019/201First12
2020/213Cert11
2019/201First11

The measure was FTE Rounded = MROUND([FTE]),5)

So the output would look like

Year            FTE       FTE Rounded

2019/20       3           5

2020/21       1.5        0 (as less than 2.5, rounds down)

Any help greatly recieved.

7 REPLIES 7
FreemanZ
Super User
Super User

hi @Suzie_Suze_Sue 

not sure if i fully get your, please create a calculated table with this:

SumTable = 
VAR _table = 
ADDCOLUMNS(
    VALUES( TableName[Year] ),
    "FTE",
    CALCULATE(SUM(TableName[FTE]))
)
RETURN
ADDCOLUMNS(
     _table,
    "FTE Rounded",
    MROUND([FTE], 5)
)

 

i tried and it worked like this:

FreemanZ_0-1673453065916.png

Thanks this works in a table, but doesn't work when adding in a slicer.

Say for example I needed a matrix in Gender by year with a larger dataset, and then want to filer by qualification

Filter = Dip

                16/17             17/18         18/19        19/20          20/21

Male         222 (220)       256(255)    212(210)    248(250)    227(225)

Female      229 (230)       246(245)    232(230)    248(250)    207(205)

Would I need to add multiple columns in? In brackets is the rounded numbers, don't need to to displayed this way, but this is what should be pulling through rather than the whole number.

Thank you very much

hi @Suzie_Suze_Sue1 

you would need a measure like this:

measure = 
VAR _sum = SUM(TableName[FTE])
RETURN
MROUND(_sum, 5)

 

with the sample data you provided in the original post and changing 5 to 2, it worked like this:

FreemanZ_0-1673935828443.png

 

p.s. please consider @someone, if you seek further suggestions. 

 

Perfect!! Thank you

amitchandak
Super User
Super User

@Suzie_Suze_Sue , this you need to create a new column

 

FTE Rounded = MROUND([FTE]),5)

 

 

The measure will be like

 

FTE Rounded =Sumx(Table,  MROUND([FTE]),5) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks

I have tried this and get the error

The syntaxt for ') is incorrect. 9DAX(Sumx(Table, MROUND([FTE]),5) ))).

Try this:

FTE Rounded =Sumx(Table,  MROUND([FTE],5) )



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.