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
cristianj
Helper IV
Helper IV

need help with a formula creating a new table by summarize for each day last 30 days values

Hello ,

I am trying to write something like this

Sumar 30 zile = summarize(
    buy_phone_details
    ,buy_phone_details[Data comanda S]
    ,buy_phone_details[model]
    ,"Nr telefoane",calculate(count(buy_phone_details[id]),filter(buy_phone_details),buy_phone_details[Data comanda S]<=[Data comanda S]&&buy_phone_details[Data comanda S]>[Data comanda S]+30)
)
but i seems i can;t get it right. Thank you for yur help
2 REPLIES 2
negi007
Community Champion
Community Champion

@cristianj  you can create a summary table like below which will show date for last 30 days. You can use your date column and modify the code accordingly.

 

summary_Sales = SUMMARIZE(FILTER(Orders,Orders[Ship Date]>=TODAY()-30),Orders[Product Category],Orders[Product Sub-Category],"Sales",SUM(Orders[Sales]))
 
 



Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Thank you for your answer, i don't need only for last 30 days, i need to calculate for each day the value for last 30 days, starting from each day in the table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.