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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
km_km2023
Frequent Visitor

Display the month name of month which had maximum (monthly) sales

I have managed to show the sales figure of the month which had highest sales.

 

However I want to display the month name which had the highest monthly sales in the selected year.

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @km_km2023 ,

 

Like this?

 

vmengzhumsft_0-1663664442256.png

 

First , create a measure:

max = IF(SELECTEDVALUE('Table'[value])=MAXX(ALL('Table'),'Table'[value]),1,0)

Then, put this measure into visual filter:

vmengzhumsft_1-1663664505434.png

You can get the above result.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @km_km2023 ,

 

Like this?

 

vmengzhumsft_0-1663664442256.png

 

First , create a measure:

max = IF(SELECTEDVALUE('Table'[value])=MAXX(ALL('Table'),'Table'[value]),1,0)

Then, put this measure into visual filter:

vmengzhumsft_1-1663664505434.png

You can get the above result.

 

Best regards,

Community Support Team Selina zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Hello,

 

You can try this - MAX_VAL = Calculate(MAX(Table[value],ALLEXCEPT(Table,Table[category]))

I dont think this works actually. I want to display the month name and not the monthly sales.

 

I would want the outcome to be "Mar" in the below scenario. Also the data is by each line, hence the below table I have shown only for example purposes.

 

km_km2023_0-1663237297215.png

 

MAX_VAL = CONCATENATE(LOOKUPVALUE(Sales[Product],Sales[Profit],MAX(Sales[Profit])),MAX(Sales[Profit]))
This has worked in my case - Concatinated Max vaue and Product. 
i have calulated max first then added lookup for Product basis to Max value, and then concatnated both the things. 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.