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
Syndicate_Admin
Administrator
Administrator

Crear una medida de valor contains para varios valores en dax

Hola
Estoy tratando de hacer una medida que me permita llevar a todos los visitantes a páginas que contienen cualquier página de la siguiente manera: /good-driving/, /car/, y /car-insurance/.

Este fue mi intento y no está funcionando:

Visitantes de preventa =
CALCULAR(
DISTINCTCOUNT('GA Online Performance'[fullVisitorId]),
'GA Online Performance'[PagePath]
EN { "%/buena conducción/%" }, { "%/coche/%" }, { "%/seguro de coche%" }
)
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hay @jnrezk ,

Por favor, pruebe el siguiente código: -

Pre Sale Visitors =
CALCULATE (
    DISTINCTCOUNT ( 'GA Online Performance'[fullVisitorId] ),
    CONTAINSSTRING ( 'GA Online Performance'[PagePath], "/good-driving/" )
        || CONTAINSSTRING ( 'GA Online Performance'[PagePath], "/car/" )
        || CONTAINSSTRING ( 'GA Online Performance'[PagePath], "/car-insurance" )
)

Gracias

Samarth

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hay @jnrezk ,

Por favor, pruebe el siguiente código: -

Pre Sale Visitors =
CALCULATE (
    DISTINCTCOUNT ( 'GA Online Performance'[fullVisitorId] ),
    CONTAINSSTRING ( 'GA Online Performance'[PagePath], "/good-driving/" )
        || CONTAINSSTRING ( 'GA Online Performance'[PagePath], "/car/" )
        || CONTAINSSTRING ( 'GA Online Performance'[PagePath], "/car-insurance" )
)

Gracias

Samarth

Genial. Gracias por la respuesta rápida 🙂

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!

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors