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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Spaik
Regular Visitor

segmented filter for customers

I hope this message finds you well.

We have encountered a challenge in Power BI that we have not been able to resolve on our own. Specifically, we are trying to filter and list customers whose "Metragem" (area measurement) is above 40% of a given reference value. The goal is to display a list of these customers within a visual, but we haven't succeeded so far.

We attempted to use DAX formulas, such as COUNTROWS, ALLSELECTED, and CONCATENATEX, but we are still struggling to achieve the desired outcome. We need the report to automatically identify and list these customers whenever the filters are applied.

Could you please assist us in resolving this issue? Any guidance or suggestions would be greatly appreciated.

Thank you in advance for your support.

Best regards,

1 ACCEPTED SOLUTION
Kaviraj11
Super User
Super User

 

You can create another column and put it in filter pane and select value as 1

  1. Create a Calculated Column for the 40% Threshold:

    • First, create a calculated column in your table to determine if the “Metragem” is above 40% of the reference value.
      AboveThreshold = 
      IF(
          'YourTable'[Metragem] > 0.4 * 'YourTable'[ReferenceValue],
          1,
          0
      )



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

3 REPLIES 3
Kaviraj11
Super User
Super User

 

You can create another column and put it in filter pane and select value as 1

  1. Create a Calculated Column for the 40% Threshold:

    • First, create a calculated column in your table to determine if the “Metragem” is above 40% of the reference value.
      AboveThreshold = 
      IF(
          'YourTable'[Metragem] > 0.4 * 'YourTable'[ReferenceValue],
          1,
          0
      )



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Kaviraj11
Super User
Super User

Hi,

 

Here’s a revised approach to clarify:

  1. Create a Measure for the Reference Value:

    ReferenceValue = SUM('Table'[Metragem]) / COUNTROWS('Table')
  2. Create a Measure for the 40% Threshold:

    ThresholdValue = [ReferenceValue] * 0.4
  3. Create a Measure to List Customers Above the Threshold: This measure directly lists the customers whose “Metragem” is above the threshold:

    CustomersAboveThreshold = 
    CONCATENATEX(
        FILTER(
            VALUES('Table'[CustomerName]),
            CALCULATE(SUM('Table'[Metragem])) > [ThresholdValue]
        ),
        'Table'[CustomerName],
        ", "
    )



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





that was really good! however, I received feedback as follows with the first two measurements.

Spaik_0-1724162383904.png

but, It brings all customers on the same field.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric Community.