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

How to identify a date that doesn't exist in a fact table ?

I am trying to solve a issue with dates, let me explain:

 

I have a calendar date and a fact table (checking table) where people check your entry, so the only records that exists is when the person check if the person don't check the record don't exists, the questions is, how can I identify the dates that aren't in the fact table.  

 

 

example of fact table: in this example employee 'A' didn't check on 08/17/20 and Employee 'C'  08/18/20. 

Employeedate
A08/16/20
A08/18/20
A08/19/20
B08/16/20
B08/17/20
B08/18/20
C08/16/20
C08/17/20
C08/19/20

Note: My calendar table has a relation with the column date. fact table (Date) -> Calendar table (Date)

 

I will appreciat if  you can help me with this issue

 

Thank you

 

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

Screenshot 2021-07-25 203321.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

With isempty works, I put a 0.

 

Now I am no t able to count the 0s, do you have some idea. it is not counting because is a result of a measure.

 

Thanks CNENFRNL!!

v-shex-msft
Community Support
Community Support

Hi @Anonymous,

I'd like to suggest you use except function to compare between fact table date and calendar date, then you can simply get these not include date values list.

EXCEPT – DAX Guide
Regards,

Xiaoxin Sheng

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

Screenshot 2021-07-25 203321.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

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.