Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 @Kunder,
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 @Kunder
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 @Kunder,
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"
)
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |