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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ayush_sinha
Helper I
Helper I

display all the locations visited in last 12 months in a map visual

How  to display all the locations visited in last 12 months in a map visual. The date slicer is as shown in image

Slicer.jpg

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @ayush_sinha ,

Could you share your sample data.

The table only time and locations ?

 

 

 

Best Regards

Lucien

ayush_sinha
Helper I
Helper I

Actually I specifically want locations to be displayed in the map not rolling 12 months average

amitchandak
Super User
Super User

@ayush_sinha , You need a measure like

 

Rolling 12 Sales =
var _max = maxx(allselcted(date),date[date]) // or today()
var _min = date(year(_max), month(_max)-12,1)
return
CALCULATE(SUM(Sales[Sales Amount]),filter(all(date), date[date] <=_max && date[date] >=_min))

 

or

 

Rolling 12 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX(Sales[Sales Date]),-12,MONTH))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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