Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
InfiniteSheldon
Frequent Visitor

Count of Total Rows Using Filter Function Based on the Value of Multiple Measures

Plase see the screenshot below. Could someone please tell me how to correct the DAX to make the table visual result match the card visual result? Card visual result should show "1" for this scenario. I have also attached the PBI file. 

 

 

InfiniteSheldon_0-1690844942967.png

 

Basically, what is wrong witht the DAX below?

 

Total CV Increase W/O EAC Increase where there is incurred cost =

CALCULATE(
    COUNT(Project[Project #]),
    FILTER(Project,
    Project[Total Actual Cost] <> 0 &&
    [Total CV Change] > 0 &&
    [Total EAC Change] <= 0
    )
)
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @InfiniteSheldon 

You can refer to the following mesaure

Total CV Inc W/O EAC Inc =
VAR test =
    SUMMARIZE ( ALLSELECTED ( Project ), [Project #] )
RETURN
    COUNTROWS (
        FILTER (
            test,
            [Total CV Change] > 0
                && [Total EAC Change] <= 0
                && SUM ( Project[Total Actual Cost] ) <> 0
        )
    )

vxinruzhumsft_0-1690942669503.png

 

Best Regards!

Yolo Zhu

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

Hi @InfiniteSheldon 

You can refer to the following mesaure

Total CV Inc W/O EAC Inc =
VAR test =
    SUMMARIZE ( ALLSELECTED ( Project ), [Project #] )
RETURN
    COUNTROWS (
        FILTER (
            test,
            [Total CV Change] > 0
                && [Total EAC Change] <= 0
                && SUM ( Project[Total Actual Cost] ) <> 0
        )
    )

vxinruzhumsft_0-1690942669503.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much Yolo! This is exactly what I was looking for. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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