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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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