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

Calendar table - Event every x days

Hi,

 

I have a problem where I'm really stuck at the moment and I can't figure out how to solve it.

 

I want to add another column "eventX" which is a text to my already existing date table in Power BI.

My date column starts with 2020/1/1.

The Start date of the event series is 2020/1/3, from this day on every 3 days (e.g. 2020/1/6, 2020/1/9, 2020/1/12,...) the column should read "eventX" otherwise the column should be blanc.

 

Any Ideas?

 

Best regards and thanks for your help.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try something like

 

if(mod(datediff([date], date(2020,01,03),day),3)=0,"EventX",Blank())

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Try something like

 

if(mod(datediff([date], date(2020,01,03),day),3)=0,"EventX",Blank())

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.

Top Solution Authors