Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Team,
How do I count only"Met" from the below DAX results?
=IF( CALCULATE(sum('Data_C3 Level'[Vol L15]), 'Data_C3 Level'[Plan/Act]= "2022 Act") - CALCULATE(sum('Data_C3 Level'[Vol L15]), 'Data_C3 Level'[Plan/Act]= "2022 Plan")<0,"Not Met","Met")
Solved! Go to Solution.
Hello @Anonymous,
Can you please try:
Met Count =
COUNTROWS(
FILTER(
ALL('Data_C3 Level'),
IF(
CALCULATE(SUM('Data_C3 Level'[Vol L15]), 'Data_C3 Level'[Plan/Act] = "2022 Act") -
CALCULATE(SUM('Data_C3 Level'[Vol L15]), 'Data_C3 Level'[Plan/Act] = "2022 Plan") < 0,
"Not Met",
"Met"
) = "Met"
)
)
Hi @Anonymous
If you are slicing by multiple columns then you need to iterate over SUMMARIZE instead of VALUES
=
SUMX (
VALUES ( 'Data_C3 Level'[The Slicing By Column] ),
INT (
CALCULATE (
SUM ( 'Data_C3 Level'[Vol L15] ),
'Data_C3 Level'[Plan/Act] = "2022 Act"
)
- CALCULATE (
SUM ( 'Data_C3 Level'[Vol L15] ),
'Data_C3 Level'[Plan/Act] = "2022 Plan"
) < 0
)
)
Hello @Anonymous,
Can you please try:
Met Count =
COUNTROWS(
FILTER(
ALL('Data_C3 Level'),
IF(
CALCULATE(SUM('Data_C3 Level'[Vol L15]), 'Data_C3 Level'[Plan/Act] = "2022 Act") -
CALCULATE(SUM('Data_C3 Level'[Vol L15]), 'Data_C3 Level'[Plan/Act] = "2022 Plan") < 0,
"Not Met",
"Met"
) = "Met"
)
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 9 | |
| 8 | |
| 7 |