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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to create Bucket in PowberBI

Dear,

 

I would like to create a bucket/slicers table (see bellow)

 

WhiteLight_FI_0-1599140282394.png

Thank you. 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

You can use EnterData and calculated column to achieve your goal.

I build two tables to have a test.

Rev Table:

1.png

Slicer Table:

2.png

Add a calculated column in Slicer Table.

Virtual Bracket Granted = 
VAR _MINK =
    DIVIDE ( Slicer[Min], 1000 ) & "" & "k€"
VAR _MAXK =
    DIVIDE ( Slicer[Max], 1000 ) & "" & "k€"
RETURN
    IF (
        Slicer[Max] = BLANK (),
        COMBINEVALUES ( "-", _MINK, BLANK () ),
        COMBINEVALUES ( "-", _MINK, _MAXK )
    )

Result:

3.png

Then build a measure in Rev Table.

Measure = 
VAR _Select =
    SELECTEDVALUE ( Slicer[Virtual Bracket Granted] )
VAR _Min =
    CALCULATE ( SUM ( Slicer[Min] ), Slicer[Virtual Bracket Granted] = _Select )
VAR _Max =
    CALCULATE ( SUM ( Slicer[Max] ), Slicer[Virtual Bracket Granted] = _Select )
VAR _Revenue =
    SUM ( 'Rev'[Revenue] )
RETURN
    IF (
        _Max = BLANK ()
            && _Revenue >= _Min,
        _Revenue,
        IF ( _Revenue >= _Min && _Revenue < _Max, _Revenue, BLANK () )
    )

Result:

4.png

You can download the pbix file from this link: How to create Bucket in PowberBI

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

Anonymous
Not applicable

Hi @Anonymous 

You can use EnterData and calculated column to achieve your goal.

I build two tables to have a test.

Rev Table:

1.png

Slicer Table:

2.png

Add a calculated column in Slicer Table.

Virtual Bracket Granted = 
VAR _MINK =
    DIVIDE ( Slicer[Min], 1000 ) & "" & "k€"
VAR _MAXK =
    DIVIDE ( Slicer[Max], 1000 ) & "" & "k€"
RETURN
    IF (
        Slicer[Max] = BLANK (),
        COMBINEVALUES ( "-", _MINK, BLANK () ),
        COMBINEVALUES ( "-", _MINK, _MAXK )
    )

Result:

3.png

Then build a measure in Rev Table.

Measure = 
VAR _Select =
    SELECTEDVALUE ( Slicer[Virtual Bracket Granted] )
VAR _Min =
    CALCULATE ( SUM ( Slicer[Min] ), Slicer[Virtual Bracket Granted] = _Select )
VAR _Max =
    CALCULATE ( SUM ( Slicer[Max] ), Slicer[Virtual Bracket Granted] = _Select )
VAR _Revenue =
    SUM ( 'Rev'[Revenue] )
RETURN
    IF (
        _Max = BLANK ()
            && _Revenue >= _Min,
        _Revenue,
        IF ( _Revenue >= _Min && _Revenue < _Max, _Revenue, BLANK () )
    )

Result:

4.png

You can download the pbix file from this link: How to create Bucket in PowberBI

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

Fowmy
Super User
Super User

@Anonymous 

You create a table using the following option: ENTER DATA - You can paste from Excel as well

 

Fowmy_0-1599142622455.png

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors