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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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