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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Cards detailing number where % against target is greater than or less than

Good Afternoon

 

I have a number of products which each have a target against them, i also have a measure detailing number sold, i then have a measure to show the % against the target.

 

ProductTarget

Sold

% Against Target
00013541117%
0002221045%
000316850%

 

What i want to be able to do is to put into 3 cards above the table the total number of products where the % against target is <50%, is between 90% and 100% and > 100%.

is this possible.

Target these numbers will not change this is a static base dataset imported in , number sold is a measure and % against target is a measure.

 

Thank you for your help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create measures. 

Products Between 90% and 100% = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER('Table', 'Table'[%Against Target] >= 0.9 && 'Table'[%Against Target]<= 1)
)
Products Greater Than 100% = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER('Table', 'Table'[%Against Target] > 1)
)
Products Less Than 50% = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER('Table', 'Table'[%Against Target] < 0.5)
)

(3) Then the result is as follows.

vtangjiemsft_0-1690340244768.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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
Anonymous
Not applicable

Thank you, the above has worked

Anonymous
Not applicable

Hi @Anonymous ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create measures. 

Products Between 90% and 100% = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER('Table', 'Table'[%Against Target] >= 0.9 && 'Table'[%Against Target]<= 1)
)
Products Greater Than 100% = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER('Table', 'Table'[%Against Target] > 1)
)
Products Less Than 50% = 
CALCULATE(
    COUNTROWS('Table'),
    FILTER('Table', 'Table'[%Against Target] < 0.5)
)

(3) Then the result is as follows.

vtangjiemsft_0-1690340244768.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors