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
santoshrnath
Helper I
Helper I

Check for Value exists one month before from today - Power bi desktop

Hi,

 

I have a single table with all my workers list in it. There is att_emp_id column and also att_date column. It is a biometric device data.

 

I need to check if the id is available one month before today. That is i want to find who has joined this month. how do i do it.

 Att_image.JPG

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @santoshrnath,


You can try to use below measure to check the id if it joined one month ago:

 

Is Join One Month Ago=
var currDate=MAX(Table[att_date])
var currId=max(Table[att_emp_id]
Return
IF(CountRows(FILTER(ALL(Table), Table[att_date]=Date(Year(currDate),Month(currDate)-1,Day(currDate)&&Table[att_emp_id]=currId)))>0,TRUE(),BLANK())


Use  att_emp_id and the above measure to create table visual.

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @santoshrnath,


You can try to use below measure to check the id if it joined one month ago:

 

Is Join One Month Ago=
var currDate=MAX(Table[att_date])
var currId=max(Table[att_emp_id]
Return
IF(CountRows(FILTER(ALL(Table), Table[att_date]=Date(Year(currDate),Month(currDate)-1,Day(currDate)&&Table[att_emp_id]=currId)))>0,TRUE(),BLANK())


Use  att_emp_id and the above measure to create table visual.

 

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.

April Fabric Community Update

Fabric Community Update - April 2024

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