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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

DAX Formula Error last step

Hi Experts

 

I am getting an error on my measure on the last row... cannot see the mistake

 

 

Rows with Material =
CALCULATE(
    COUNTROWS( 'App Forms' ),
    LEFT( 'App Forms'[Impact], 8 ) = "Material" &&
    COUNTROWS( 'App Forms' ),
    LEFT( 'App Forms'[Reg], 8 ) = "Material" &&
    COUNTROWS( 'App Forms' ),
    LEFT( 'App Forms'[Media], 8 ) = "Material" &&
    COUNTROWS( 'App Forms' ),
    LEFT( 'App Forms'[Financial], 8 ) = "Material" &&
    COUNTROWS( 'App Forms' ),
    LEFT( 'App Forms'[Businesss], 8 ) = "Material"  &&
    COUNTROWS( 'App Forms' ),
    LEFT( 'App Forms'[Incident], 8 ) = "Material"  &&
    COUNTROWS( 'App Forms' ),
    LEFT( 'App Forms'[External], 8 ) = "Material")

 

the error is here after the last comma 
,LEFT( 'App Forms'[External], 8 ) = "Material")

The Synatc for "," is incorrect....

 

I have tried using but && and || signs..

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , what countrow doing in between at filter location

 

Try like

 

Rows with Material =
CALCULATE(
COUNTROWS( 'App Forms' ),
LEFT( 'App Forms'[Impact], 8 ) = "Material" &&
LEFT( 'App Forms'[Reg], 8 ) = "Material" &&
LEFT( 'App Forms'[Media], 8 ) = "Material" &&
LEFT( 'App Forms'[Financial], 8 ) = "Material" &&
LEFT( 'App Forms'[Businesss], 8 ) = "Material" &&
LEFT( 'App Forms'[Incident], 8 ) = "Material" &&
LEFT( 'App Forms'[External], 8 ) = "Material")

 

you can replace && with or || if needed

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , what countrow doing in between at filter location

 

Try like

 

Rows with Material =
CALCULATE(
COUNTROWS( 'App Forms' ),
LEFT( 'App Forms'[Impact], 8 ) = "Material" &&
LEFT( 'App Forms'[Reg], 8 ) = "Material" &&
LEFT( 'App Forms'[Media], 8 ) = "Material" &&
LEFT( 'App Forms'[Financial], 8 ) = "Material" &&
LEFT( 'App Forms'[Businesss], 8 ) = "Material" &&
LEFT( 'App Forms'[Incident], 8 ) = "Material" &&
LEFT( 'App Forms'[External], 8 ) = "Material")

 

you can replace && with or || if needed

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

No Filter

@Anonymous , can you explain what you are trying to get

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!