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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ThuJa23
Advocate II
Advocate II

Custom legend change automatically by month

Hi Everyone, 

 

I have created 2 measures to display order value of next month and next 2 months from this month

Ord val next month = CALCULATE (  [Ord Val],  NEXTMONTH('Date'[Date]), Snapshot[Name] = "Actual date")
Ord val in next 2 months = CALCULATE([Ord Val], DATEADD('Date'[Date],2,MONTH),Snapshot[Name] = "Actual date")
 
Then I displayed in chart as below
ThuJa23_0-1634020099773.png

I rename the names of value in chart from "ord val next month and ord val in next 2 months" into "current mth + 1, current mth + 2".

However, I would like to ask - can we custom legend by dax or anyway that show the month name automatically?

For example: If current month (which is selected in filter) is October, then the above chart can display in legend information with

- black bar: November

- grey bar: December

 

Does anyone have idea about this, please share with me

 

Thanks so much for your replies

Br

Thu

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ThuJa23 , Measure label rename is not supported as of now. You can try with independent date table and display +2 months

 

refer

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ThuJa23 , Measure label rename is not supported as of now. You can try with independent date table and display +2 months

 

refer

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Hi @amitchandak ,

Danke for the information. I will check the link 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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