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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
v-mengzhu-msft
Community Support
Community Support

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
v-mengzhu-msft
Community Support
Community Support

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

 

JadhavVarsha_13
Resolver II
Resolver II

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 AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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