cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shreeram04
Frequent Visitor

Display Month Name

Hi All,

 

I want to display the month name on a card that has the largest value in the year. For example, January has a value of 20, Feb has 40 and march has 50 means I want to display march(Month name) on my data card.

 

Please help me figure out this one. Thanks in advance.

4 REPLIES 4
isabella
Microsoft
Microsoft

Hi @Shreeram04 

 

I did a local test ,you can take a reference 

 

Here is my test  table

isabella_0-1656399227480.png

 

 

 

 

First I created a calendar table

isabella_1-1656399227480.png

 

Then create a one-to-one relationship between these two tables

isabella_2-1656399227482.png

 

 

 

Then create another table like this:

 

month for maxsale = TOPN(1,VALUES('calendar table'[Date].[MonthNo]),CALCULATE(SUM('Table'[sales])))

 

isabella_3-1656399227483.png

 

 

We can see that  month 6 has the max sales

 

Best Regards,

Community Support Team _Isabella

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

PC2790
Super User
Super User

Hey @Shreeram04 ,

 

Try this:

MaxValueMonth = FIRSTNONBLANK(TOPN(1,VALUES(Table[MonthName]),[measuretogetthemaxvalue]),1)
NickolajJessen
Solution Sage
Solution Sage

Well, your solution may vary, as you provided very little information. I'm making the assumption, that your jan, feb, mar values are summations and i'm making the assumption, that you have a calendar table.

NickolajJessen_0-1655880968199.png


Please refer to this post:
How to Get Your Question Answered Quickly - Microsoft Power BI Community

If this post solves your problem, accept it as a solution
Appreciate your kudos

MajeedKhan
Helper I
Helper I

You can do this with Multi-row card visual.

MajeedKhan_0-1655880342978.png

 

set the values as follows:

MajeedKhan_1-1655880404992.png

 

 

 

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors