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

CrossJoin for blank dates vs defined dates

Hello to everyone

 

I need help since I managed to crossjoin in a new table all values that are defined for specific dates.

However, i've got the standard prices for the non-campaign times (Which have blank dates):

 

haloboyscp_0-1616149969205.png

FILTER(CROSSJOIN(Table1,'Table2), Table1[Week]>='Table2'[inicio] && Table1[Week]<='Table2'[fim] && Table1[Bundle2]='Table1 2'[PP])
 
However this is matching me only the values which have a promo. is it possible to create a new table only for not matching dates (which in this case are blanks) and arent subject to the period conditions?
 
Thanks
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Create a CALENDAR() table that covers the entire range of dates you want to report against, then use GENERATESERIES() for the dates where you have events, and finally EXCEPT() the two tables which will give you all the dates that do NOT have events.

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Create a CALENDAR() table that covers the entire range of dates you want to report against, then use GENERATESERIES() for the dates where you have events, and finally EXCEPT() the two tables which will give you all the dates that do NOT have events.

Thanks Mate!

lbendlin
Super User
Super User

Is 'Table1 2'  a typo?

 

Are you familiar with the EXCEPT() and INTERSECT() functions?

Hello,

 

It's just a typo, yes. should just read Table2.

 

Yeah. I am familiar with those, however not managing to apply them to this here.

 

Thanks.

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.