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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ConstantDele
New Member

SUM DATE

Hi everyone,

 

I'd like to calculate the sum of a specific date .

 

Here is the format : 

ConstantDele_0-1714988871783.png

I have until May 2024

I would like to have the total of 2024 in a measure, same for 2023, so that after I can make growth %

 

Thank you very much for your help

Best

12 REPLIES 12
SaranKumarM
Frequent Visitor

Hi @constantDele

 

1. Create One calculated Column and Split the Year.

  

SaranKumarM_0-1714991710552.png

2. For clculcting the Qty based on year please use the below Measure.

SaranKumarM_1-1714991777417.png

3. Final result will look something like this

SaranKumarM_2-1714991818522.pngSaranKumarM_3-1714991843692.png

Please Accept this as a Solution if it helps you.

 

Thanks!

Hi,

 

thanks but the thing is in the formula, it doesn't give me the opportunity to select my table date

ConstantDele_0-1714992091342.png

 

Hi @ConstantDele 

is the Date column is from the same table? could you please send me the screenshot of it ?

 

Thanks!

ConstantDele_0-1714995339133.png

 

Hi @ConstantDele 

please give the table name and column in it like below

Year(Table Name[Date Column name]) 

It will work.

 

Thanks,

2023(FRANCEINVOICESResults[Date]

Hi @ConstantDele 

 

You should not give year here year is the function

please use this "Year_ = Year(FRANCEINVOICESResults[Date])"

 

Thanks

Thanks, but this what I explained, after I put YEAR, they don't propose me to put "franceinvoices(date)

Hi @ConstantDele 

 

I guess you are creating Measure please create new Column not meaure.

 

SaranKumarM_0-1715003610802.png

Thanks,

ConstantDele
New Member

Hi,

 

Sorry if i havn't been clear enough.

I have date in the format dd/mm/yyyy

I just want to have a formula showing the sum of quantity within 2024 for example

Same for month also

ConstantDele_0-1714991421852.png

 

VijayP
Super User
Super User

@ConstantDele  Is that you want sum of the values based on year , OR you want to add  date1 + DAte2. 

But Adding dates is not having any data meaning!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


h21
Helper I
Helper I

Hi @ConstantDele 

It will be better to understand if you describe your requirement properly with proper sample data as well as the expected output ypu want.

Best Regards.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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