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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
HubertZieciak
Frequent Visitor

Day Name & Week Number from Date Column

Hi All,

 

I have number filed from D365 (decimal) which indicates on which day monthly payment should happen.

 

I need to show all records where this day is exceeded by 7 days in current month, while the report is checked (today).

How Can I create function where:
         YEAR(current)MONTH(current)DAY(decimal field) + 7 >= Today ?

1 ACCEPTED SOLUTION

Thanks for help.

 

Problem was solved in different way.
We added addiotional field in CRM with date I need.

View solution in original post

5 REPLIES 5
Josh_BI_UK
Helper II
Helper II

Hi @HubertZieciak , Could you post a sample of your date data, and an example of the output you are looking for please?

I have column "Payment day" (decimal) which shows day in a month when payment should be made, i.e. number 29 means payment should be done on 29th of each month.

 

Now what I really need to check is, if Payment day was exceeded by 7 days (today < Payment day +7).

 

I can't figure out how to number from decimal column convert/fit into date column/measure.

Przechwytywanie.PNG



 

 

 

@HubertZieciak  Please try this as a New Column to create date for your Payment Day field.

 

PaymentDate = DATE(YEAR(TODAY()),MONTH(TODAY()),Test298Date[PaymentDay])

Then you can add 7 days to the Payment Date to check

Check = IF(Test298Date[PaymentDate]+7<TODAY(),"Y","N")

image.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Thanks for help.

 

Problem was solved in different way.
We added addiotional field in CRM with date I need.

Thank you Pattem.
I tried this solution, but I got an error:
Przechwytywanie.PNG
Column format is set to date:
Przechwytywanie.PNG

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors