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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

How to show dates which are not available in the table.

Hi experts,

 

I have table where Employee log in is captured (DB: SQL Server). I wanted to get the dates on which Employee was absent
e.g. In June EMP1 came to office on 2, 4, 7,11 then absent days are 1, 3, 5, 6, 8, 9, 10, 12 (consider today as 12 June); EMP 1 - joining is 1-May-21.
EMP 2 came to office on 3,4,5,9,12 then absent days are 6,7,8,10,11 as EMP2 joining date is 3-Jun-21; here 1, 2 wont consider as joining beacause EMP2 wasnt joined.

PFA dummy data.Sample data.PNG

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

Hi, @Anonymous 

According to your description, I can roughly understand your requirement, I’ve also created some test data to make a test, I think you can try this measure to place into the table chart:

First, you can give them a single-direction relationship like this:

vrobertqmsft_0-1623920609952.png

 

Status =

var _check=SELECTCOLUMNS(FILTER(ALL('Table'),[Employee Name]=SELECTEDVALUE('Table'[Employee Name])),"1",[Check in])

return

IF(MAX('Date'[Date]) in _check,"Present","Absent")

Then you can place the fields in the table chart like this:

vrobertqmsft_1-1623920609958.png

 

And you can get what you want.

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-robertq-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, I can roughly understand your requirement, I’ve also created some test data to make a test, I think you can try this measure to place into the table chart:

First, you can give them a single-direction relationship like this:

vrobertqmsft_0-1623920609952.png

 

Status =

var _check=SELECTCOLUMNS(FILTER(ALL('Table'),[Employee Name]=SELECTEDVALUE('Table'[Employee Name])),"1",[Check in])

return

IF(MAX('Date'[Date]) in _check,"Present","Absent")

Then you can place the fields in the table chart like this:

vrobertqmsft_1-1623920609958.png

 

And you can get what you want.

You can download my test pbix file below

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

Thank you very much!

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , You need to create a date table and join your date with that.

Either +0 in your measure or Show item with no data can help

 

ShowItemwithoutdata.JPG

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
Anonymous
Not applicable

Thanks Amit, for quick reply.
Forgot to mentioned that I already used custom date table; also tried Left outer & Left anti but none worked out.
So basically I want the dates for which there is no entry in the database & which should be >= joining date of employee.
I tried If(isblank(Emp.Dt),"Absent","Present") but its only returning "Present".; any reason why?

Appreciate your thoughts.

Emp Blank.PNG

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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