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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Nihed
Helper III
Helper III

help need with dax (urgent)

Hello,

 

I have an Excel table and I have to calculate the following indicators:

Nihed_0-1638536819843.png

 

someone a little helped me please . I share with you the link with the table urgent please 🙏🙏🙏🙏🙏

 

The Link pbix:     https://we.tl/t-mMIvUg3zFG 

2 REPLIES 2
Icey
Community Support
Community Support

Hi @Nihed ,

 


 

Nihed_0-1638536819843.png

 


What is your "last month" based on? Today in calendar or just the current row in your table? For example,

Index Date Last Month 1 Last Month 2 (Today is 12/22/2021)
1 Jan 2021   Nov 2021
2 Feb 2021 Jan 2021 Nov 2021
3 Mar 2021 Feb 2021 Nov 2021

 

In addition, how do you want to show your final result? In which visualization?

 

 

 

Best Regards,

Icey

amitchandak
Super User
Super User

@Nihed , with help from date table and time intelligence you can do that

examples

 

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

 

last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))

 

or

last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-13,MONTH)))

 

refer if needed

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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