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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RubenMerino
Frequent Visitor

DATEDIFF based on measure

Hi 


I have two table:

 

  1. Calendari_des_de_2018: And this table it's only a calendar table.
  2. Llista_Espera: And this table has mean data.

I need measure , the name IE01, that count de difference of day between de column "Data Baixa" of Llista_Espera table and the value of "Data_maxima_seleccio_filtre" than has the funcion "Data_maxima_seleccio_filtre = LASTDATE(Calendari_des_de_2018[Date])".

The idea is, when you us the slider to filter a day the function "Data_maxima_seleccion_filter" take the lastdate and them in the measure of difference of day between change the number of difference day.

This is the final table than I need.

 

RubenMerino_1-1708435000705.png

 

Thanks. 

1 ACCEPTED SOLUTION

Hi @Greg_Deckler 

Finally
I point that I forget, I delate de relation between tables 

RubenMerino_0-1708438617254.png

RubenMerino_1-1708438646531.png

 

 

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@RubenMerino Seems like:

Measure = 
  ( MAX('Llista_Espera'[Data Baixa]) - [Data_maxima_seleccion_filter] ) * 1.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler 

Finally
I point that I forget, I delate de relation between tables 

RubenMerino_0-1708438617254.png

RubenMerino_1-1708438646531.png

 

 

Hi @Greg_Deckler 

First, thank very much for answer so fast

But I think it dosen't work

RubenMerino_0-1708436798052.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.