Forum Discussion

vjnvinod's avatar
vjnvinod
Impactful Individual
8 years ago

DAX support

 

Hi,

 

here is my data sample.

https://www.dropbox.com/s/1n3gtyqxb8wjncn/data.xlsx?dl=0

 

what i would like to achieve is,

Top Core 10 core account based on TER_FYTD_USD

Next 15 core account based on TER_FYTD_USD

Remainder Core account based on TER_FYTD_USD

 

This is my table in Power BI.

Account        AccountSegment    TER_FYTD_USD

EigCore0
DolCore33914.75
818Core0
818Core-7439.3
DE G3600
DE G3600
DE Core0
DE Core0
DE Core0
DE Core0
DE Core0
DE Core0
EdiCore0
EdiCore31351.83162
EdiCore0
EdiCore52873.82172
EdiCore0
EdiCore0
EdiCore493.367909

5 Replies

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    Hi vjnvinod,

     

    To achieve your requirement, you should create a rank column first as below:

    Rank = RANKX(FILTER(Table1, Table1[AccountSegment] = EARLIER(Table1[AccountSegment])), RANKX(ALL(Table1), Table1[TER_FYTD_USD]), , ASC, Dense)

    Then create three measures two achieve your result:

    Top Core 10 core account = CONCATENATEX(FILTER(Table1, Table1[Rank] <= 10 && Table1[AccountSegment] = "Core"), "No" & [Rank] & ":" & [Account], ", ", [Rank], ASC)
    Next 15 core account = CONCATENATEX(FILTER(Table1, Table1[Rank] > 10 && Table1[Rank] <= 25 && Table1[AccountSegment] = "Core"), "No" & [Rank] & ":" & [Account], ", ", [Rank], ASC)
    Remainder Core account = CONCATENATEX(FILTER(Table1, Table1[Rank] > 25 && Table1[AccountSegment] = "Core"), "No" & [Rank] & ":" & [Account], ", ", [Rank], ASC)

    The result is as below:

     

     

    Hope it's helpful to you.

     

    Jimmy Tao

    • vjnvinod's avatar
      vjnvinod
      Impactful Individual

      v-yuta-msft

       

      This is super helpful, but i think this is not what i want to achieve but a visual something like below

       

      is this view possible?

       

      1) Account having G360 as a Account segment should remain as it is

      2) Filter out Top 10 core accounts (by summing up the similar accounts(using TER_FYTD_USD value) which is shown as in multiple lines)

      3) similarly for Next 15 Core accounts

      4) Similarly for Remainder accounts

       

      • v-yuta-msft's avatar
        v-yuta-msft
        Community Support

        Hi vjnvinod,

         

        You said "by summing up the similar accounts", "Similarly". Could you clarify your logic of how to achieve them and more details about your requirement?

         

        Regards,

        Jimmy Tao