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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Syndicate_Admin
Administrator
Administrator

List customers with a visit outside of selected dates

I have the date filter

apenaranda_0-1718187969500.png

I have the measure that verifies if a customer has had a visit in that range, this is fine.

Seguimiento_Cliente = CALCULATE(COUNT(MovInteracciones_sql[Interaction Template Code]),MovInteracciones_sql[Interaction Template Code]="SEG_CLIENT")

Now I would like to know which client has visited but outside those dates.

I've tried the following but it doesn't quite work for me.

# Cli Sin Visitas en periodo = 
VAR ClientesPrimeraVisita = 
ADDCOLUMNS(
    VALUES(MovInteracciones_sql[Contact No_]),
    "UtimaVisita",
    CALCULATE(
        MAX(MovInteracciones_sql[Date]),
        ALL(Fechas),MovInteracciones_sql[Interaction Template Code]="SEG_CLIENT"
    )
)
VAR ClientesVisita = 
FILTER(
    ClientesPrimeraVisita,
    NOT [UtimaVisita] IN VALUES(Fechas[Date]) && NOT(ISBLANK([UtimaVisita]))
)
VAR Resultado = COUNTROWS(ClientesVisita)
RETURN Resultado

Can anyone help me?

Thank you.

3 REPLIES 3
lbendlin
Super User
Super User

If that date column is connected to your fact table then it will not be possible. You will need to feed the slicer from a disconnected table.

The table where the interactions are and know if there is a visit or not has a column also dated that is connected to the dates.

I don't quite understand what you're saying about the column date this connected to table facts. And I don't know what you mean by powering a "cutter" from a disconnected board.

Thank you

Ah, the joys of translation...  "slicer"  means a filter visual

 

lbendlin_0-1718279406966.png

 

"board"  means table  (in your data model)

lbendlin_1-1718279455132.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.