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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
unclejemima
Post Patron
Post Patron

Gauge max value to "best month sales in current year"

I'm using a few measures to calculate "IncomeLastMonth" and "IncomeThisMonth" (full month)

 

IncomeLastMonth = SUMX(FILTER(Trandata,EOMONTH(Trandata[EndofMonthDate],0)=EOMONTH(NOW(),-1)),Trandata[Income4000's])
IncomeThisMonth = SUMX(FILTER(Trandata,EOMONTH(Trandata[EndofMonthDate],0)=EOMONTH(NOW(),0)),Trandata[Income4000's])

So...I have the IncomeThisMonth as the VALUE of the gauge, the IncomeLast Month as the TARGET, and I want to make a calculation for the "BestFullMonthThisCurrentYear"

 

Any idea what DAX I could use for this?


Thanks!

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Try this measure

 

=MAXX(SUMMARIZE(VALUES(Trandata[EndofMonthDate]),[EndofMonthDate],"ABCD",SUM(Trandata[Income4000's])),[ABCD])

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks for the reply.

 

I was returned a result what was the sales for the entire calender year, less the current month, not the best sales month in the current year.

 

Any other idea's?

Hi,

 

Show the link from where i can download your PBI file and also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.