cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

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

Accepted Solutions
Highlighted
Advocate I
Advocate I

Re: Number Format - Total - Please chose dont summarise option for that field as shwon in attached

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
Highlighted
Helper I
Helper I

Re: Number Format - Total - Please chose dont summarise option for that field as shwon in attached

BI_sol_1.png

Highlighted
Advocate I
Advocate I

Re: Number Format - Total - Please chose dont summarise option for that field as shwon in attached

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

Highlighted
Helper I
Helper I

Re: Number Format - Total - Please chose dont summarise option for that field as shwon in attached

Hi.,

 

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

 

Thanks

Highlighted
Advocate I
Advocate I

Re: Number Format - Total - Please chose dont summarise option for that field as shwon in attached

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 
Highlighted
Helper I
Helper I

Re: Number Format - Total - Please chose dont summarise option for that field as shwon in attached

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" )
        )
    )

 

Highlighted
Advocate I
Advocate I

Re: Number Format - Total - Please chose dont summarise option for that field as shwon in attached

Finally its works with 

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

 

View solution in original post

Helpful resources

Announcements
Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Kudoed Authors