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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Number Format - Total

 

Hi all,

I need to know how to remove total on the "Number Format"  column 

 
Number Format = IF(SUM('Table'[Number]) = INT (Sum('Table'[Number])),
FORMAT(SUM('Table'[Number]),"#,#"),
FORMAT(SUM('Table'[Number]),"#,0.00"))
 

Capture.PNG

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Finally its works with 

Column =
IF (
    Table[Number] = INT ( Table[Number] ),
    FORMAT ( Table[Number], "#,#" ),
    FORMAT ( Table[Number], "#,0.00" )
)

 

View solution in original post

6 REPLIES 6
sivapandi
Helper I
Helper I

BI_sol_1.png

Anonymous
Not applicable

much appreciate your reply
in my "number format " Column's options shown like this,
Capture.PNG

Hi.,

 

Check your data type in modeling tab for that particular coloumn. It should not be text . it should be a decimal.

 

Thanks

Anonymous
Not applicable

It's in Text Format because of this

Number Format = IF(SUM('Table'[Number]) = INT (Sum('Table'[Number])),
FORMAT(SUM('Table'[Number]),"#,#"),
FORMAT(SUM('Table'[Number]),"#,0.00"))
and its a requirement 
 to fulfill 

Hai.,

 

Ignore my earlier post...this will work....

Number Format =
VAR X =
    COUNTROWS ( VALUES ( 'Table'[Custom] ) )
RETURN
    IF (
        X > 1,
        "",
        IF (
            SUM ( 'Table'[Number] ) = INT ( SUM ( 'Table'[Number] ) ),
            FORMAT ( SUM ( 'Table'[Number] ), "#,#" ),
            FORMAT ( SUM ( 'Table'[Number] ), "#,0.00" )
        )
    )

 

Anonymous
Not applicable

Finally its works with 

Column =
IF (
    Table[Number] = INT ( Table[Number] ),
    FORMAT ( Table[Number], "#,#" ),
    FORMAT ( Table[Number], "#,0.00" )
)

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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