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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Need Help to Sort data for highest sales by supplier for current month

Hello,

 

I havd a table which looks like the fllowing: 

My requirement is to have a bar chart that displays, the top 3 selling vendors for current month based on the sales date (in this case for the month of July, and should change to August when August 21 starts.)

 

TanmayG31_2-1627121138072.png

This is what I want to achieve.

TanmayG31_0-1627120942427.png

 

Your support is highly appreciated.

 

Best Regards..

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

sales amount.jpg

 

 

 

Best Regards,

Icey

 

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

8 REPLIES 8
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Try this:

sales amount.jpg

 

 

 

Best Regards,

Icey

 

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

Mohammad_Refaei
Solution Specialist
Solution Specialist

You need to use the visual filter (Sold By) TopN against Sales Amount... since you need top 3 then you should have the seetings as below.

m_refaei_0-1627124145963.png

 

You may download this sample file.

 

Anonymous
Not applicable

Thank you m_refaei. Appreciate your quick response.

But want to have the month dynamically created rather that having a slicer to select the month. 

I was thinking of having a measure using dax to calculate the result. I have no specfic preference though..

My requirement is to have everything in the graph.

 

Regards.

Do you mean like having 12 charts for the full year or only the last month?

Or do you mean the chart title?

Anonymous
Not applicable

TanmayG31_0-1627128428352.png

 

This bar chart is correct, I want my data to b displayed in exactly the same way. 

But here we are get the data for the Month of July based on the value selection in the slicer.

I do not want to have the slicer, the data shuold dynamically be calculated for the month we are in. In this case for July.

Well... then lets create a new column in your data table:

CurrentMonth =
IF ( MONTH ( TODAY () ) = Data[Month_No], TRUE (), FALSE () )

Add it to the visual filter where it is TRUE.

 

Please redownload the sample file.

Anonymous
Not applicable

Actually that is not working, In this case there will be 2 filters on my report, one for top3 and another one for current month.

First it calculates the top 3 and returns the results which could be for the earlier months and 

then eveluates the filter for Current month, which gives blank result.

Not really...it will evaluate the Top 3 according to the selected month.

If you want the all time top 3 then we have to write another measure for the YTD sales amount.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.