Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

filtering the real time data

Hey Folks,

 I am working on bulk of real time data, which keeps on refreshing every 5min. and want to create a output of only the current data to be displayed.

 

Example- I have all list of country i want to choose USA and select its population at the last refresh period

 

 

THING I HAVE TRIED.( i am a begginer and not goot with DAX)

1- Column 2 = CALCULATETABLE(POWERPRD,EXCEPT(VALUES(POWERPRD[Site ID]),VALUES(netpower[latest_date])))

 
2- TP2 = CALCULATE(LOOKUPVALUE(('POWERPRD'[TP2]),'POWERPRD'[Site ID],"ALEXA"),FILTER('POWERPRD',MONTH('POWERPRD'[t_stamp]=MONTH(turbine[latest_date]))))
 
 
thanks, plz help.

4 Replies

  • v-frfei-msft's avatar
    v-frfei-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous,

     

    We can create a calculated table to filter. If it doesn't meet your requirement, kindly share your sample data and excepted result to me. Please upload your files to One Drive and share the link here.

     

    Table = var _max = CALCULATE(MAX('Table2'[date]),ALL(Table2))
    return
    CALCULATETABLE(Table2,Table2[date]<=_max && DATEDIFF('Table2'[date],_max,MINUTE)<=5)

    Regards,

    Frank