cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
apollo89 Regular Visitor
Regular Visitor

Bin Measure values into calculated column

Hi All,

 

Consider the following table:

 

Capture.PNG

 

I then a build a measure of this:

 

Measure = SUMX('Table','Table'[Value])
 
Result:
 
Capture.PNG
 
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
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.

Capture.PNG

Hope this can help you.

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.

View solution in original post

2 REPLIES 2
Community Support Team
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.

Capture.PNG

Hope this can help you.

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.

View solution in original post

Community Support Team
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.

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

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?

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

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!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors