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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors