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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.