Skip to main content
cancel
Showing results for 
Search instead 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

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
v-tangjie-msft
Community Support
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.

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

v-tangjie-msft
Community Support
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.

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
Europe Fabric Conference

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

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

August Carousel

Fabric Community Update - August 2024

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