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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.