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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
bapt69
Helper I
Helper I

Function in the name of the measure

Hey everyone,

I would like to put a function in the name of a measure.

I put it in the name of the title of the visual but it's not enough for the users lol.

 

"Adhésion n-1" would be "Adhésion 2022" when you choose "2023" and "Adhésion n" would be "Adhésion 2023" obviously.

Legend.jpg

I hope I'm clear enough...

 

Thank you all!

3 REPLIES 3
Anonymous
Not applicable

Hi @bapt69 ,

 

Please share some sample data so that we could test formula.

 

Exemple :

 

Table with customers (with registration)

Customer_idEtablissementRegistrationDate
21365Boulou15/10/2022
21366StJean16/10/2023
21367Boulou19/10/2023

 

Table with Date

DateMonthYear
15/10/2022102022
16/10/2022102022
17/10/2022102022
...  

 

Link between RegistrationDate and Date

 

I create a column chart with x-axis=Month and y-axis=distinct(customer_id) of this year and distinct(customer_id) of the last year

These 2 measures have a name and we can change it...but how can we use a variable in the name of the measures?

When I choose year=2023, I would like the name of the measures is "Adhésion 2023" (adhésion n=2) and "Adhésion 2022" (adhésion n-1=1).

bapt69
Helper I
Helper I

n is the year you choose in the slicer and n-1 is one year before the year you choose

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors