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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
p0nk
Frequent Visitor

Compare value against target range for multiple entries

Hello,

 

I currently have the following table within Power BI:

ExampleData.PNG

The blue columns are the categories that I would like to use, the red column is the count of each entry for the repective category and the % of distribution is a measure to find the percentage of the total for each category.

 

I would like to have another column that that if category 1 in % of distribution is between 0 and 0.05 = "No" otherwise "Yes", is category 2 in % of distrbution is between 0.7 and 0.9 = "No" otherwise "Yes" and if category 3 in % of distribution is between 0.1 and 0.2 = "No" otherwise "Yes". 

 

Ideally I would like the solution to be in the form of a measure if possible but other solutions are welcome.

 

Any help would be much appreciated,

Thanks.

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @p0nk ,

We can create a measure like below:

Measure =
IF (
    MIN ( Table1[Category] ) = "A",
    IF ( [% of distribution] >= 0 && [% of distribution] <= 0.05, "No", "Yes" ),
    IF (
        MIN ( Table1[Category] ) = "B",
        IF ( [% of distribution] >= 0.7 && [% of distribution] <= 0.9, "No", "Yes" ),
        IF ( [% of distribution] >= 0.1 && [% of distribution] <= 0.2, "No", "Yes" )
    )
)

The result will like below:

PBIDesktop_lvPb73juaq.png

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @p0nk ,

We can create a measure like below:

Measure =
IF (
    MIN ( Table1[Category] ) = "A",
    IF ( [% of distribution] >= 0 && [% of distribution] <= 0.05, "No", "Yes" ),
    IF (
        MIN ( Table1[Category] ) = "B",
        IF ( [% of distribution] >= 0.7 && [% of distribution] <= 0.9, "No", "Yes" ),
        IF ( [% of distribution] >= 0.1 && [% of distribution] <= 0.2, "No", "Yes" )
    )
)

The result will like below:

PBIDesktop_lvPb73juaq.png

Best Regards,

Teige

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.