Forum Discussion

NadeemAhamed's avatar
NadeemAhamed
Icon for Helper V rankHelper V
2 years ago
Solved

How to handle Total and Grand total Values

 

Hi Everyone

 

I am looking for how to handle the Total and Grand Total values which is coming automatically in Power Bi 

but some times if we have some column is text that also its taking as sum.

 

Exception :

 

In Power BI

 

 

2 Replies

  • Hello NadeemAhamed , 

     

    Since there is no filter context at Total level you see the values showing, Please try the Hasonefilter or Hasonevalue to handle this scenerio, you can try the sample code below by replacing the sctually measure or column names you have.

     

    Remark Measure =
    IF(HASONEVALUE(Table[Month]),MAX(Table[Remark]),"N/A")

     

    Sum Measure = 

    IF(HASONEVALUE(Table[Month]),Sum(Table[Intrest]),Blank())

     

    If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!

     

    Thank You

    Dharmendar S

    LinkedIN