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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Collins26390
Frequent Visitor

Days Since Measure on Map Visualisation

Hello,

 

I have created a Power BI report to log the frequency and location of visits carried out by the gas engineers I work with. I have added a map visualisation to help illustrate this and I want to show how many days it has been since the last visit was carried out at each location. I have created a measure with the following formula in a separate table:

 

Days Since Last Visit = DATEDIFF('RealTimeData'[Date of Last Visit],TODAY(),DAY)
 
This works fine, but when I try to drop this measure into the map visualisation, it comes up as 0 for every location, which isn't correct. 
 
I'd appreciate any advice!
 
Thanks,
 
Charlie
2 REPLIES 2
Collins26390
Frequent Visitor

Hi @amitchandak,

 

Thanks for your response. I tried your suggestion, but unfortunately the map visual is still aggregating the data. I have also tried changing the SharePoint list to make the days since calculation at source, but unfortunately I am still having the same issue, whether the column is a number or text!

 

If you or anyone else has any other suggestions it would be much appreciated.

 

Kind regards,

 

Charlie

amitchandak
Super User
Super User

@Collins26390 , to me it seem like a column not meausre .

 

Create a column in the table RealTimeData

Days Since Last Visit = DATEDIFF('RealTimeData'[Date of Last Visit],TODAY(),DAY)

 

or measure

Days Since Last Visit =

Averagex( 'RealTimeData',  DATEDIFF('RealTimeData'[Date of Last Visit],TODAY(),DAY)

 

or

 

Days Since Last Visit =

Sumx( 'RealTimeData',  DATEDIFF('RealTimeData'[Date of Last Visit],TODAY(),DAY)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.