cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors