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
Jayee
Responsive Resident
Responsive Resident

Must need a Measure with Date add with date field contains duplicate dates

Hello Community,

 

I have a measure with Dateadd need this to be worked with same logic

  1. Adding value  [tgt CT(days)] + LOT_START_DATE
  2. Comparing days between above output and today date
  3. Now we got the no of days by line 2 and divide this number with another number.


In  Original Dataset table is Direct query so must be a measure

RCT (dpml) =
SUMX (
R_RCT,
DIVIDE (
DATEDIFF (
TODAY (),
DATEADD ( R_RCT[LOT_START_DATE], [Tgt CT (days)], DAY ),
DAY
),
R_RCT[Remain Layer],
0
)
)

  

 

2 ACCEPTED SOLUTIONS
speedramps
Super User
Super User

We want to help you but your description is too vaugue. Please write it again clearly.

Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do. That would be crazy. 😀

Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.

Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.

Remember not to share private data ... we don't want you to get into trouble. 😧

Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.

You will get a quick response if you put time, care and effort into writing clear problem descriptions.

Vaugue descriptions can waste your time and ourtime.

Look foward to helping you when the above information is forthcoming

View solution in original post

Jayee
Responsive Resident
Responsive Resident

Hi @speedramps ,

 

Bro Thanks a lot for writing back all suggestions and things need to Take care while posting a Topic I felt really happy 😊.

As you suggested started to work on very simple table and 1 example to show what I am looking for then I realised Power BI also add and subtract dates with out any Dateadd fuction it is solved now
🙂.

 

Thanks again for taking time and writing the post......

View solution in original post

3 REPLIES 3
speedramps
Super User
Super User

Thank you Jayee, glad you resolved it. Well done.

Sorry I was no help at all on this occasion. Look forward to helping you another time soon.

 

speedramps
Super User
Super User

We want to help you but your description is too vaugue. Please write it again clearly.

Please DON'T copy & paste your DAX that does not work and expect us to fathom what you want to do. That would be crazy. 😀

Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.

Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
Also provide the example desired output, with a clear description of the process flow.

Remember not to share private data ... we don't want you to get into trouble. 😧

Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.

You will get a quick response if you put time, care and effort into writing clear problem descriptions.

Vaugue descriptions can waste your time and ourtime.

Look foward to helping you when the above information is forthcoming

Jayee
Responsive Resident
Responsive Resident

Hi @speedramps ,

 

Bro Thanks a lot for writing back all suggestions and things need to Take care while posting a Topic I felt really happy 😊.

As you suggested started to work on very simple table and 1 example to show what I am looking for then I realised Power BI also add and subtract dates with out any Dateadd fuction it is solved now
🙂.

 

Thanks again for taking time and writing the post......

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.