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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.