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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-xinruzhu-msft
Community Support
Community Support

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
v-xinruzhu-msft
Community Support
Community Support

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors