The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have an 'On Target' measure that has been created from 3 separate tables - this is used on a matrix visual showing accounts/customers that are either on or below target.
Is there a way of doing a count of the accounts/customers that are on or exceeding their targets (all the positive values) and the same for negative values? Looking to show the % of accounts/customers that are on target vs those that aren't.
When I try adding a count measure the 'On Target' measure is not an option to select. Is this because already calculated measures cannot be used within another measure?
Solved! Go to Solution.
HI @AllyT11
Please try
Count +ve =
COUNTROWS (
FILTER (
ADDCOLUMNS ( VALUES ( 'Table'[Customer Account] ), "@OnTarget", [On Target] ),
[@OnTarget] > 0
)
)
Count -ve =
COUNTROWS (
FILTER (
ADDCOLUMNS ( VALUES ( 'Table'[Customer Account] ), "@OnTarget", [On Target] ),
[@OnTarget] < 0
)
)
HI @AllyT11
Please try
Count +ve =
COUNTROWS (
FILTER (
ADDCOLUMNS ( VALUES ( 'Table'[Customer Account] ), "@OnTarget", [On Target] ),
[@OnTarget] > 0
)
)
Count -ve =
COUNTROWS (
FILTER (
ADDCOLUMNS ( VALUES ( 'Table'[Customer Account] ), "@OnTarget", [On Target] ),
[@OnTarget] < 0
)
)
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |