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
evillarreal
Regular Visitor

Dynamic histograms / segmentation based on measures?

Hi there,

 

I've recently come across a problem I don't know how to tackle. I've been using this (http://www.daxpatterns.com/static-segmentation/) to create a histogram classifying dummy data according to a calculation (for instance, unit price * units) that fall in some kind of bucket.

 

The problem is, I've now come across the need to do it using measures, and I can't display the count of the Measure (which would just return the text value of the name of the appropiate category.


I'm aware of the differences between calculated columns and measures, but still, is there a way to make this work somehow?

Thanks!

 

1 REPLY 1
v-jiascu-msft
Employee
Employee

Hi @evillarreal,

 

A measure is always changing in response to the report. (evaluation context). So counting of a measure is meaningless. Maybe there is a workaround, just maybe. Create a new table to bring all the possible values of a measure together, then we can count them any way.

 

Best Regards!

Dale

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