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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vjnvinod
Impactful Individual
Impactful Individual

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 5
v-yuta-msft
Community Support
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:

捕获.PNG 

 

Hope it's helpful to you.

 

Jimmy Tao

@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

 

Requirement.PNG

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

@v-yuta-msft

 

my requirement is to get the below view, is it possible? this is basically a waterfall chart in PPT

Now coming back to your question.

the ranking measures you have shared is actually not grouping the similar accounts into one and ranking it.

it means there are multiple lines for an account with TER_FYTD_USD values, apparently this multiple lines should club and become one single account and TER_FYTD_USD Value, eventually it should rank accordingly. In simple words PIVOT of the data which combines muliple lines into one.

 

My opinion is that the below view can be achieved only if we create a calculate coloumn instead of measure.

this is how calculated coloumn should be created

1) if accounts are G360, we don't have to rank it, keep the calculated coloumn as G360                                 

2) if an accounts are Core, Club the similar accounts                                     ( eg ABC account    core segment,   TER 2000

                                                                                                               ABC account    core segment,   TER  2500

                                                                                                  Output  ABC account    core segment     TER 4500

then rank it &  Identiy those top 10 core accounts based on TER_FYTD values & keep the calculated coloumn as TOP 10 Core account

 

3)  if accounts are Core, Club the account                                     ( eg ABC account    core segment,   TER 2000

                                                                                                               ABC account    core segment,   TER  2500

                                                                                                  Output  ABC account    core segment     TER 4500

 

then rank it &  Identiy those Next 15 core accounts based on TER_FYTD values & keep the calculated coloumn as Next 15 Core account

 

4)  if an account is Core, Club the account                                     ( eg ABC account    core segment,   TER 2000

                                                                                                               ABC account    core segment,   TER  2500

                                                                                                  Output  ABC account    core segment     TER 4500

 

then rank it &  Identiy those Remainder core accounts based on TER_FYTD values & keep the calculated coloumn as Remainder Core account

is it possible to create a caculated coloumn to achieve the below view?

 

Requirement.PNG

vjnvinod
Impactful Individual
Impactful Individual

@v-yuta-msft

 

let me know if this is something we can do in Power BI

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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