Forum Discussion

RanjanThammaiah's avatar
6 years ago
Solved

How to count the Meaasure Numbers

Hi All,

 

Can some one help me to count the numbers that resulted from the measures?

 

I could get the total numbers from the Input and i have calculated the % of the each column by its total. if the column total is more than 10% of the total number than 1 else 0.

 

No i wanted to count the total Numbers of the each row.ie Advisory SLI+Assurance SLI+TAS SLI+Tax SLI= Total count

 

 

AccountNameAdvisoryAssuranceTASTaxTotalAdvisory %Assurance %TAS %Tax %Advisory SLIAssurance SLITAS SLITax SLI
ABC2634310.18233185.56223787.0156437.773147720.5284%7%7%2%1   
XYZ2485145.2712608.92687796.9264019.43249570.5177%0%21%2%1 1 
MNO1528248.264667.29-13404.2117452.641536963.98101%0%-1%1%1   
     LogicAdvisory/TotalAssurance/TotalTAS/TotalTax/Totalif Advisory % >10% then 1 else ""if Assurance % >10% then 1 else ""if TAS % >10% then 1 else ""if Tax % >10% then 1 else ""
  • v-yingjl's avatar
    v-yingjl
    6 years ago

    Hi RanjanThammaiah ,

    You can try this link:

    PBIX 

     

    And the row total of each account is in the end of row:

     

    Best Regards,

    Yingjie Li

     

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

  • Try like

    calculate(count(table[account_number]),values(table[account_number]),Advisory SLI]+[Assurance SLI]+[TAS SLI]+[Tax SLI] >0)

    Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
    In case it does not help, please provide additional information and mark me with @

    Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
    Connect on Linkedin

      • amitchandak's avatar
        amitchandak
        Super User

        Try

        calculate(count(table[account_number]),values(table[account_number]),filter(table,Advisory SLI]+[Assurance SLI]+[TAS SLI]+[Tax SLI] >0))

         

        if it does not work out. please share some data with formulas

  • v-yingjl's avatar
    v-yingjl
    Community Support

    Hi RanjanThammaiah ,

    You can create the following measure to solve your problem:

     

    Total Number = SUMX(DISTINCT('table'[AccountName]),[Advisory % SLI]+[Assurance % SLI]+[TAS % SLI]+[TAX % SLI])

     

    You will get the result like this:

     

    Here is the demo , please try it:

    PBIX 

     

    Best Regards,

    Yingjie Li

     

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

    • RanjanThammaiah's avatar
      RanjanThammaiah
      Helper V

      Hi,

       

      thanks for the reply. is there anyway we can ge the row total of each Account?

       

      i have ended up with the below error once after i add the formula. and drag that to my table.

       

      All the columns types are in Whole numbers except the account name column.

       

      And  i am unable to download the Pbix file. 

      • v-yingjl's avatar
        v-yingjl
        Community Support

        Hi RanjanThammaiah ,

        You can try this link:

        PBIX 

         

        And the row total of each account is in the end of row:

         

        Best Regards,

        Yingjie Li

         

        If this post helps then please consider Accept it as the solution to help the other members find it more quickly.