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
gbarr12345
Helper V
Helper V

Monthly Sales Growth measure

Hi,

 

I'm trying to create a measure to show the month sales growth but when I ran the measure and put it into the graph the growth is showing -100% as per the screenshot.

 

I have the code below. Any help to fix would be appreciated!

 

Thank you 🙂 

 

Monthly Sales Growth =
DIVIDE([Total Sales],
CALCULATE([Total Sales], DATEADD(Orders[Order Date], -1, MONTH) ), 0) -1

 

gbarr12345_0-1714535336936.png

 

2 REPLIES 2
PijushRoy
Super User
Super User

HI @gbarr12345 

For the Time Intelligence function, please use the Calendar table and use the Calendar table as the Date Table
Ref - https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-date-tables

 

You are using Month in your DAX measure to calculate Last Month sale
But you are using Date as Row Header.
Please use Month as Row Header

PijushRoy_0-1714538688457.png


Share a sample PBIX file link (Google Ddirve/Sharepoint/Dropbox) to get a more accurate answer if not solve your question




Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin

Hi Pijush,

 

I've attached my Google drive with the PBIX file now.

 

Hopefully you can help me fix it.

 

Many Thanks.

 

https://drive.google.com/file/d/1cl5RN3MHqMEFbAtQ4_PtOwz0-oV_5Hba/view?usp=drive_link

 

Hope you can help me solve it.

 

Many thanks.

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.