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
emveha
Resolver III
Resolver III

create tiers 0 <=10K, 10<=20K, 20<=50K Sales

hi 

have a table with gross sales data from -999999 till 99999, now i want to create tiers/categories based on my gross sales as:

0 <=10K, 10<=20K, 20<=50K

so in that case i can see immediately how many customers there are per tier.

Any ideas??

thnx

M

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

 

load a TierTable with TierCode, TierLabel TierMin e TierMax (es: 1, 0-10K, 0, 10000)

Add a calculated column on your sales table with this formula: 

=CALCULATE(

    VALUES(‘TierTable'[TierCode]),

    FILTER(

        ‘Tier’,

        ‘Tier'[TierMin]<[Gross Sales] &&

        ‘Tier'[TierMax]>=[Gross Sales]

    )

)

Create a relationship between your TierTable and SalesTable using TierCode column in both tables.

 

For more infos read these posts by Marco Russo:

https://www.daxpatterns.com/static-segmentation/

https://www.daxpatterns.com/dynamic-segmentation/

 

Regards

Lorenzo

 

If you like my proposal, please give me a kudos and set my answer as solution.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

 

load a TierTable with TierCode, TierLabel TierMin e TierMax (es: 1, 0-10K, 0, 10000)

Add a calculated column on your sales table with this formula: 

=CALCULATE(

    VALUES(‘TierTable'[TierCode]),

    FILTER(

        ‘Tier’,

        ‘Tier'[TierMin]<[Gross Sales] &&

        ‘Tier'[TierMax]>=[Gross Sales]

    )

)

Create a relationship between your TierTable and SalesTable using TierCode column in both tables.

 

For more infos read these posts by Marco Russo:

https://www.daxpatterns.com/static-segmentation/

https://www.daxpatterns.com/dynamic-segmentation/

 

Regards

Lorenzo

 

If you like my proposal, please give me a kudos and set my answer as solution.

amitchandak
Super User
Super User

Please refer , if this can help

https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning

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 Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

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.