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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.