cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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.

 Product Target Sold % Against Target 0001 35 41 117% 0002 22 10 45% 0003 16 8 50%

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.

1 ACCEPTED SOLUTION
Community Support

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.

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.

2 REPLIES 2
Anonymous
Not applicable

Thank you, the above has worked

Community Support

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.

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.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors