Forum Discussion
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
| Eig | Core | 0 |
| Dol | Core | 33914.75 |
| 818 | Core | 0 |
| 818 | Core | -7439.3 |
| DE | G360 | 0 |
| DE | G360 | 0 |
| DE | Core | 0 |
| DE | Core | 0 |
| DE | Core | 0 |
| DE | Core | 0 |
| DE | Core | 0 |
| DE | Core | 0 |
| Edi | Core | 0 |
| Edi | Core | 31351.83162 |
| Edi | Core | 0 |
| Edi | Core | 52873.82172 |
| Edi | Core | 0 |
| Edi | Core | 0 |
| Edi | Core | 493.367909 |
5 Replies
- v-yuta-msftCommunity 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
- vjnvinodImpactful Individual
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-msftCommunity 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