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
apollo89
Helper II
Helper II

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
v-piga-msft
Resident Rockstar
Resident Rockstar

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
v-piga-msft
Resident Rockstar
Resident Rockstar

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.
v-piga-msft
Resident Rockstar
Resident Rockstar

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.

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.