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
MikeOll
Regular Visitor

Account Segmentation by Revenue that can be sliced

Hello All,

 

Have accounts that buy different services for different products.  There is a segmentation concept within SEO that looks at the accounts that make up the top 50% of your revenue, those that make up the next 48% and finally the tail that make up the last 2%.  Using a slicer, it makes this revenue number dynamic plus I'm trying to group accounts by have a cumulative revenue less than or equal to the segment boundary.  Other segmentation techniques I've seen in the community look at accounts in isolation between certain boundaries.

 

The data looks like:

 

Accounts,Service,Product,Revenue

Client1,Installation,Network,$10

Client1,Design,Security,$20

Client1,Support,Telephony,$30

Client2,Installation,Network,$30

Client2,Design,Security,$40

Client2,Support,Telephony,$50

Client3,Installation,Network,$90

Client3,Design,Security,$5

Client3,Support,Telephony,$100

 

It's just in a single fact table at the moment.

 

I'm a novice trying to work out how to apply this logic.  RankX and TopN focus on ranking and looking at the top accounts.  However, the logic of what I'm after is:

 

1) Slice the data by service or product

2) Create calculated measures (50% of Revenue (REV50), 48% of Revenue (REV48), 2% of Revenue (REV2))

3) Sort the accounts by revenue descending

4) Sum descending the rows until <= REV50.  Mark a column for Segment - Top.

5) Sum descending the following rows until <= REV48.  Mark a column for Segment - Middle.

6) Mark the remaining rows as - Tail.

7) Have a table view which I can slice with a button by Top, Middle or Tail.

 

Is this feasible in PowerBI?

 

Cheers

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @MikeOll,

 

Unfortunately, I think it is hard to achieve your requirement. You can add measure or column formula to calculate rank and corresponding revenue.

Measures can be dynamic changed based on slicer or filter, but it not able used on slicers. Calculated column can used as source of slicer, but it can't calculate dynamic result based slicer/filters.

 

In my opinion, you can consider to write measure to return segment and drag it to visual level filter to apply filter effect on specific visual.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @MikeOll,

 

Unfortunately, I think it is hard to achieve your requirement. You can add measure or column formula to calculate rank and corresponding revenue.

Measures can be dynamic changed based on slicer or filter, but it not able used on slicers. Calculated column can used as source of slicer, but it can't calculate dynamic result based slicer/filters.

 

In my opinion, you can consider to write measure to return segment and drag it to visual level filter to apply filter effect on specific visual.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.