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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
SkorpionAAM
Helper V
Helper V

Latest Status

I'm looking a add custome cloumn for latest status of station with dates ... 

 
 
ADDCOLUMNS(
SUMMARIZE('GasStation',[place_digital_adress],"Date",MAX('GasStation'[date])),
"Status",MAXX(FILTER('GasStation',[place_digital_adress]=EARLIER([place_digital_adress])&&[Date]=EARLIER([Date])),[STATUS_OF_STATION])
)
 
please anyone help me where Im doing wrong
1 ACCEPTED SOLUTION

@SkorpionAAM , my bad one additional )

 

new column =
var _max = MAXX(FILTER('GasStation',[place_digital_adress]=EARLIER([place_digital_adress])),[Date])
return
MAXX(FILTER('GasStation',[place_digital_adress]=EARLIER([place_digital_adress]) && [Date] = _Max),[STATUS_OF_STATION])

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@SkorpionAAM , I think new column show be like this

new column =
var _max = MAXX(FILTER('GasStation',[place_digital_adress]=EARLIER([place_digital_adress])),[Date])
return
MAXX(FILTER('GasStation',[place_digital_adress]=EARLIER([place_digital_adress]) && [Date] = _Max)),[STATUS_OF_STATION])

 

Max of date for place_digital_adress

gettting error 

SkorpionAAM_0-1608734437329.png

 

@SkorpionAAM , my bad one additional )

 

new column =
var _max = MAXX(FILTER('GasStation',[place_digital_adress]=EARLIER([place_digital_adress])),[Date])
return
MAXX(FILTER('GasStation',[place_digital_adress]=EARLIER([place_digital_adress]) && [Date] = _Max),[STATUS_OF_STATION])

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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