The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Thank you for your help
Solved! Go to Solution.
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.
Thank you, the above has worked
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
108 | |
77 | |
76 | |
46 | |
39 |
User | Count |
---|---|
137 | |
108 | |
64 | |
64 | |
53 |