cancel
Showing results for
Did you mean:
Highlighted
Regular Visitor

## Bin Measure values into calculated column

Hi All,

Consider the following table:

I then a build a measure of this:

Measure = SUMX('Table','Table'[Value])

Result:

What I need to do is to 'Bin' them with the following:

SWITCH(TRUE(),
[Measure] > 0 && [Measure] <70,"1",
[Measure]>= 70 && [Measure] <140,"2",
[Measure]>= 140 && [Measure]<210,"3"
)

Although a measure here works, but I need to be able to place this into either a filter or a column in an Analyze in Excel pivot. Since Analyze in Excel pivot has a limitation of only being able to put Measures into Values field (@https://docs.microsoft.com/en-us/power-bi/desktop-troubleshooting-analyze-in-excel), I would need a Column to place this into a filter or a row or columns pane.
Anyway to achieve this?

Thanks!
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team

## Re: Bin Measure values into calculated column

Hi @apollo89 ,

For a workaround, you could create another calculated table like below, so that the measure will be the column in the calcauted table.

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team

## Re: Bin Measure values into calculated column

Hi @apollo89 ,

For a workaround, you could create another calculated table like below, so that the measure will be the column in the calcauted table.

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team

## Re: Bin Measure values into calculated column

Hi @apollo89 ,

Have you solved the problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, feel free to ask.

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

#### Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

#### Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!